Skip to content

Commit

Permalink
fix presets for animtab
Browse files Browse the repository at this point in the history
  • Loading branch information
saboooor committed Dec 25, 2024
1 parent 1fd4f7b commit 9adf625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/resources/animtab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,10 @@ export default component$(() => {
if (store[key] === undefined) return;
(store as any)[key] = json[key] ?? defaults[key];
});
(Object.keys(animtabstore) as Array<keyof typeof animtabstore>).forEach(key => {
if (animtabstore[key] === undefined) return;
(animtabstore as any)[key] = json[key] ?? defaults[key];
});
const alert = {
class: 'text-green-500',
text: 'color.importedPreset@@Successfully imported preset!',
Expand Down

0 comments on commit 9adf625

Please sign in to comment.