Skip to content

Commit 583b17f

Browse files
Merge pull request #3 from Statflo/STATFLO-724
feat(STATFLO-724): clean-up rename widgetType
2 parents c1d3781 + 6f0e756 commit 583b17f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@statflo/widget-sdk",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "SDK for building widgets with Statflo and beyond",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

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)