mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
fix: fix actions buttons error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user