fix: modals regression (#10211)
Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
6dfc19247e
commit
47add7e7fc
3 files changed
+10
-9
No files matched your search
@@ -301,7 +301,8 @@ export const FormBuilder = function FormBuilder({
|
||||
const isFieldEditableSystemButOptional = field.editable === "system-but-optional";
|
||||
const isFieldEditableSystemButHidden = field.editable === "system-but-hidden";
|
||||
const isFieldEditableSystem = field.editable === "system";
|
||||
const isUserField = !isFieldEditableSystem && !isFieldEditableSystemButOptional && !isFieldEditableSystemButHidden;
|
||||
const isUserField =
|
||||
!isFieldEditableSystem && !isFieldEditableSystemButOptional && !isFieldEditableSystemButHidden;
|
||||
|
||||
if (!fieldType) {
|
||||
throw new Error(`Invalid field type - ${field.type}`);
|
||||
@@ -543,7 +544,7 @@ export const FormBuilder = function FormBuilder({
|
||||
/>
|
||||
</Form>
|
||||
</div>
|
||||
<DialogFooter className="relative mt-5 rounded px-8 pb-8" showDivider>
|
||||
<DialogFooter className="relative rounded px-8" showDivider>
|
||||
<DialogClose color="secondary">{t("cancel")}</DialogClose>
|
||||
<Button data-testid="field-add-save" type="submit" form="form-builder">
|
||||
{isFieldEditMode ? t("save") : t("add")}
|
||||
|
||||
Reference in new issue
Block a user