Skip to content

Commit 04b794d

Browse files
feat(STATFLO-724): clean-up rename widgetType
1 parent c1d3781 commit 04b794d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Widget {
66
id: string;
77
name: string;
88
url: string;
9-
widgetType: "iframe" | "native";
9+
type: "iframe" | "native";
1010
remote?: {
1111
module: string;
1212
component: string;
@@ -72,7 +72,7 @@ const useWidgetStore = create<WidgetState>()((set, get) => {
7272
const { id, type, data } = e;
7373

7474
get()
75-
.widgets.filter((widget) => widget.widgetType === "iframe")
75+
.widgets.filter((widget) => widget.type === "iframe")
7676
.forEach((widget) => {
7777
const iframe = document.getElementById(
7878
widget.id

0 commit comments

Comments
 (0)