diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index 76d59d008..14dbd500b 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -85,7 +85,7 @@ export const useFormBlockType = () => { export const useIsDetailBlock = () => { const ctx = useFormBlockContext(); - return ctx.type === 'update'; + return ctx.type !== 'create'; }; export const FormBlockProvider = (props) => { diff --git a/packages/core/client/src/modules/form-creation/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/form-creation/__e2e__/schemaSettings.test.ts index 6a00eb1dd..3837d283e 100644 --- a/packages/core/client/src/modules/form-creation/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/form-creation/__e2e__/schemaSettings.test.ts @@ -1164,7 +1164,7 @@ test.describe('actions schema settings', () => { await page.getByRole('button', { name: 'Submit' }).hover(); await page.getByRole('button', { name: 'designer-schema-settings-Action-Action.Designer-users' }).hover(); }, - supportedOptions: ['Edit button', 'Linkage rules', 'Bind workflows', 'Delete'], + supportedOptions: ['Edit button', 'Bind workflows', 'Delete'], }); }); @@ -1179,7 +1179,6 @@ test.describe('actions schema settings', () => { }, supportedOptions: [ 'Edit button', - 'Linkage rules', 'Assign field values', 'Skip required validation', 'After successful submission', diff --git a/packages/core/client/src/modules/form-edit/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/form-edit/__e2e__/schemaSettings.test.ts index 49165f584..0c9e7759f 100644 --- a/packages/core/client/src/modules/form-edit/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/form-edit/__e2e__/schemaSettings.test.ts @@ -148,7 +148,7 @@ test.describe('actions schema settings', () => { await page.getByRole('button', { name: 'Submit' }).hover(); await page.getByRole('button', { name: 'designer-schema-settings-Action-Action.Designer-users' }).hover(); }, - supportedOptions: ['Edit button', 'Linkage rules', 'Bind workflows', 'Delete'], + supportedOptions: ['Edit button', 'Bind workflows', 'Delete'], }); }); @@ -163,7 +163,6 @@ test.describe('actions schema settings', () => { }, supportedOptions: [ 'Edit button', - 'Linkage rules', 'Assign field values', 'Skip required validation', 'After successful submission', diff --git a/packages/core/client/src/modules/form-filter/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/form-filter/__e2e__/schemaSettings.test.ts index b67dcab0b..a66625ecb 100644 --- a/packages/core/client/src/modules/form-filter/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/form-filter/__e2e__/schemaSettings.test.ts @@ -92,7 +92,7 @@ test.describe('actions schema settings', () => { await page.getByLabel('action-Action-Filter-submit-general-filter-form').hover(); await page.getByRole('button', { name: 'designer-schema-settings-Action' }).hover(); }, - supportedOptions: ['Edit button', 'Linkage rules', 'Delete'], + supportedOptions: ['Edit button', 'Delete'], }); // Reset settings -------------------------------------------------------------------- @@ -102,7 +102,7 @@ test.describe('actions schema settings', () => { await page.getByLabel('action-Action-Reset-general-filter-form').hover(); await page.getByRole('button', { name: 'designer-schema-settings-Action' }).hover(); }, - supportedOptions: ['Edit button', 'Linkage rules', 'Delete'], + supportedOptions: ['Edit button', 'Delete'], }); }); }); diff --git a/packages/core/client/src/schema-component/hooks/useDesigner.ts b/packages/core/client/src/schema-component/hooks/useDesigner.ts index cb2ecf7be..160bed95f 100644 --- a/packages/core/client/src/schema-component/hooks/useDesigner.ts +++ b/packages/core/client/src/schema-component/hooks/useDesigner.ts @@ -20,5 +20,5 @@ export const useDesigner = () => { }, [fieldSchema]); const component = useComponent(toolbar); - return designable ? component : Def; + return designable ? component || Def : Def; };