Skip to content

Commit c045397

Browse files
fix(website): only need to set theme when changed
1 parent 318d387 commit c045397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/overmind-website/src/overmind/operators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const ensureViewAndTypescript: <T extends object>() => Operator<
66
> = () =>
77
action(({ value: routeContext, state, effects }) => {
88
if (
9-
state.typescript !== Boolean(routeContext.query.typescript) ||
9+
state.typescript !== JSON.parse(routeContext.query.typescript) ||
1010
state.theme !== routeContext.query.view
1111
) {
1212
state.typescript = routeContext.query.typescript === 'true'

0 commit comments

Comments
 (0)