Skip to content

Commit

Permalink
fix: test afterHook started not liking state.mutate
Browse files Browse the repository at this point in the history
  • Loading branch information
blackxored committed Jan 14, 2025
1 parent ce2783a commit 62a69b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/components-react/widgets/common/useWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,7 @@ export class WidgetModule<TWidgetState extends IWidgetState = IWidgetState> {
}

private setStaticConfig(resp: unknown) {
this.state.mutate(state => {
state.staticConfig = resp;
});
this.state.setStaticConfig(resp);
}
}

Expand Down

0 comments on commit 62a69b9

Please sign in to comment.