Fix for default button position for new form blocks
This commit is contained in:
parent
c0012409f7
commit
d20e2d795b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue