copy tab data before mutating (#2084)
This commit is contained in:
parent
235c58645f
commit
580c261e5d
|
|
@ -200,8 +200,9 @@ const WidgetConfigResponse: WidgetConfigReducerState = {
|
|||
const tabs = [...widget.tabs];
|
||||
|
||||
const newTabs = tabs.map((tab: any) => {
|
||||
tab.widgetId = generateReactKey();
|
||||
return tab;
|
||||
const newTab = { ...tab };
|
||||
newTab.widgetId = generateReactKey();
|
||||
return newTab;
|
||||
});
|
||||
const updatePropertyMap = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user