Fix Online Theme Deletion

This commit is contained in:
thororen1234 2024-09-30 21:13:16 -04:00
parent 3496fec74e
commit 3d8c757e75

View file

@ -446,7 +446,10 @@ function ThemesTab() {
key={rawLink.fileName}
enabled={settings.enabledThemeLinks.includes(rawLink.link)}
onChange={enabled => onThemeLinkEnabledChange(rawLink.link, enabled)}
onDelete={() => deleteThemeLink(rawLink.link)}
onDelete={async () => {
onThemeLinkEnabledChange(rawLink.link, false);
deleteThemeLink(rawLink.link);
}}
showDeleteButton
theme={rawLink}
/>;