Skip to content
Snippets Groups Projects
Commit 3be00eb0 authored by Michele Alberti's avatar Michele Alberti
Browse files

[ivette] Do not crush if no theme is selected.

parent 55965be6
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ const ASTview = () => { ...@@ -121,7 +121,7 @@ const ASTview = () => {
} }
// Theme Popup // Theme Popup
const selectTheme = (id: string) => setTheme(id); const selectTheme = (id?: string) => id && setTheme(id);
const checkTheme = const checkTheme =
(th: { id: string }) => ({ checked: th.id === theme, ...th }); (th: { id: string }) => ({ checked: th.id === theme, ...th });
const themePopup = const themePopup =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment