mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: fix color cannot be renamed
This commit is contained in:
@@ -381,7 +381,7 @@ export function showRenameColorDialog(color: Color) {
|
||||
onClose={() => perform(false)}
|
||||
onAction={async (title: string) => {
|
||||
if (!title) return;
|
||||
await db.tags.add({ id: color.id, title });
|
||||
await db.colors.add({ id: color.id, title });
|
||||
showToast("success", "Color renamed!");
|
||||
appStore.refreshNavItems();
|
||||
perform(true);
|
||||
|
||||
Reference in New Issue
Block a user