Fixed bug where user could create empty app or bookmark which was causing page to go blank

This commit is contained in:
Paweł Malak
2022-03-25 13:16:57 +01:00
parent 668edb03d3
commit 0b3eb2e87f
5 changed files with 29 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ export const ThemeCreator = ({ modalHandler }: Props): JSX.Element => {
if (!themeInEdit) {
addTheme(formData);
} else {
updateTheme(formData);
updateTheme(formData, themeInEdit.name);
}
// close modal