Skip to content

Commit 11ba7fc

Browse files
Ji Kimchdavis0917dwejikimjigarxplindenyoung
authored andcommitted
Fix actions.ts updateComponentSize
> > Co-authored-by: Chris Davis <[email protected]> Co-authored-by: Ji Kim <[email protected]> Co-authored-by: Jigar Patel <[email protected]> Co-authored-by: Linden Young <[email protected]>
1 parent b997072 commit 11ba7fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ const actions: Store<"main", State, {}, Actions> = {
900900
const updatedComponent = this.routes[this.activeRoute].filter(
901901
(element) => element.componentName === payload.activeComponent
902902
)[0];
903-
updatedComponent.h = payload.h;
904-
updatedComponent.w = payload.w;
903+
(updatedComponent.h as number | undefined) = payload.h;
904+
(updatedComponent.w as number | undefined) = payload.w;
905905
updatedComponent.x = payload.x;
906906
updatedComponent.y = payload.y;
907907
},

0 commit comments

Comments
 (0)