refactor(frontend): rename store.set -> store.commit
This commit is contained in:
@@ -23,11 +23,11 @@ export async function addTheme(theme: Theme): Promise<void> {
|
||||
if (themes.some(t => t.id === theme.id)) {
|
||||
throw new Error('already exists');
|
||||
}
|
||||
prefer.set('themes', [...themes, theme]);
|
||||
prefer.commit('themes', [...themes, theme]);
|
||||
}
|
||||
|
||||
export async function removeTheme(theme: Theme): Promise<void> {
|
||||
if ($i == null) return;
|
||||
const themes = getThemes().filter(t => t.id !== theme.id);
|
||||
prefer.set('themes', themes);
|
||||
prefer.commit('themes', themes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user