Skip to content

Commit

Permalink
fixed theme index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Jun 29, 2024
1 parent 4ff5e9f commit 13bbb72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/client/vanilla/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ function Editor({ standaloneServer = false }) {
setOpen={setSelectOpen}
onChange={(e) => {
const index = themes.findIndex((r) => r.name === e)
loadThemeComponents(index)
setThemeIndex(index)
loadThemeComponents(index).then(() => setThemeIndex(index))
}}
/>
</div>
Expand Down

0 comments on commit 13bbb72

Please sign in to comment.