mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
Do not put empty row in edit layout if not necessary
This commit is contained in:
parent
6e48232c85
commit
c54efe7bbb
@ -154,6 +154,7 @@ function syncLayouts(configuration, schema) {
|
||||
}
|
||||
|
||||
const appendToEditLayout = (layout = [], keysToAppend, schema) => {
|
||||
if (keysToAppend.length === 0) return layout;
|
||||
let currentRowIndex = Math.max(layout.length - 1, 0);
|
||||
|
||||
// init currentRow if necessary
|
||||
|
Loading…
x
Reference in New Issue
Block a user