🐛 Fix issues with updating tiles

This commit is contained in:
Meier Lukas
2023-03-30 22:54:08 +02:00
parent 525985b1dc
commit 8c59ab0846
7 changed files with 23 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ import { useConfigContext } from '../../../../config/provider';
import { useConfigStore } from '../../../../config/store';
export type WidgetsRemoveModalInnerProps = {
widgetId: string;
widgetType: string;
};
@@ -23,7 +24,7 @@ export const WidgetsRemoveModal = ({
configName,
(prev) => ({
...prev,
widgets: prev.widgets.filter((w) => w.type !== innerProps.widgetType),
widgets: prev.widgets.filter((w) => w.id !== innerProps.widgetId),
}),
true
);