mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fixes crash on older app with same widget name (#4876)
This commit is contained in:
parent
49224f4e48
commit
3945e15b0f
1 changed files with 4 additions and 1 deletions
|
|
@ -290,7 +290,10 @@ export const Box = function Box({
|
|||
setExposedVariable={(variable, value) => onComponentOptionChanged(component, variable, value)}
|
||||
setExposedVariables={(variableSet) => onComponentOptionsChanged(component, Object.entries(variableSet))}
|
||||
registerAction={(actionName, func, dependencies = []) => {
|
||||
if (Object.keys(currentState?.components ?? {}).includes(component.name)) {
|
||||
if (
|
||||
Object.keys(currentState?.components ?? {}).includes(component.name) &&
|
||||
currentState?.components[component.name].id === id
|
||||
) {
|
||||
if (!Object.keys(exposedVariables).includes(actionName)) {
|
||||
func.dependencies = dependencies;
|
||||
return onComponentOptionChanged(component, actionName, func);
|
||||
|
|
|
|||
Loading…
Reference in a new issue