Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix color cannot be renamed

Abdullah Atta14b469d8b687
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsx
index 29b195590..5a322873c 100644
--- a/apps/web/src/common/dialog-controller.tsx
+++ b/apps/web/src/common/dialog-controller.tsx
@@ -392,7 +392,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);