We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0e0ee commit 1714ca5Copy full SHA for 1714ca5
site/src/xServices/appearance/appearanceXService.ts
@@ -84,16 +84,14 @@ export const appearanceMachine = createMachine(
84
actions: {
85
assignPreviewAppearance: assign({
86
appearance: (_, event) => event.appearance,
87
- // The xState docs suggest that we can use a static value, but I failed
88
- // to find a way to do that that doesn't generate type errors.
89
- preview: (_, __) => true,
+ preview: (_) => true,
90
}),
91
notifyUpdateAppearanceSuccess: () => {
92
displaySuccess("Successfully updated appearance settings!")
93
},
94
assignAppearance: assign({
95
appearance: (_, event) => event.data as AppearanceConfig,
96
- preview: (_, __) => false,
+ preview: (_) => false,
97
98
assignGetAppearanceError: assign({
99
getAppearanceError: (_, event) => event.data,
0 commit comments