1
0
Fork 0
mirror of synced 2024-08-14 09:31:49 +12:00

Fix for default button position for new form blocks

This commit is contained in:
Dean 2023-11-23 12:04:52 +00:00
parent c0012409f7
commit d20e2d795b

View file

@ -610,7 +610,8 @@ export const getFrontendStore = () => {
enrichedComponent["buttons"] =
Utils.buildDynamicButtonConfig(enrichedComponent)
//Ensure existing Formblocks position their buttons at the top.
enrichedComponent["buttonPosition"] = "top"
enrichedComponent["buttonPosition"] =
enrichedComponent["buttonPosition"] || "top"
} else if (enrichedComponent["buttons"] == null) {
// Ignore legacy config if 'buttons' has been reset by 'resetOn'
const { _id, actionType, dataSource } = enrichedComponent