fix: fix actions buttons error

This commit is contained in:
Ruben Fiszel
2024-04-12 19:52:13 +02:00
parent a2f3d3978d
commit 662de85b2f
2 changed files with 2 additions and 2 deletions
@@ -490,7 +490,7 @@ export function getAllSubgridsAndComponentIds(
}
if (component.type === 'aggridcomponent' || component.type === 'aggridcomponentee') {
components.push(...component.actions?.map((x) => x.id))
components.push(...(component.actions?.map((x) => x.id) ?? []))
}
if (component.type === 'menucomponent') {
@@ -91,7 +91,7 @@
}
if (item?.data.type == 'aggridcomponent' || item?.data.type == 'aggridcomponentee') {
for (let c of item.data.actions) {
for (let c of item.data.actions ?? []) {
let old = c.id
c.id = c.id.replace(id + '_', newId + '_')
propagateRename(old, c.id)