Skip to content

Commit c9c78cf

Browse files
remove non-erroring setstate
1 parent 5fee981 commit c9c78cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/Root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const Root: Component<RootProps> = (p) => {
3333
setState('searchText', newValue);
3434
},
3535
setActionsContext(actionId, newData) {
36-
// @ts-expect-error need to figure out nested store setters.
3736
setState('actionsContext', 'dynamic', actionId, newData);
3837
},
3938
resetActionsContext(actionId) {
@@ -42,7 +41,7 @@ export const Root: Component<RootProps> = (p) => {
4241
'dynamic',
4342
produce<DynamicContextMap>((dynamicContext) => {
4443
delete dynamicContext[actionId];
45-
})
44+
}),
4645
);
4746
},
4847
openPalette() {

0 commit comments

Comments
 (0)