From 44ac3732a70d854b0ad42b68174ef77deeac4e82 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 16 Feb 2024 15:29:31 +0500 Subject: [PATCH] web: fix color cannot be renamed --- apps/web/src/common/dialog-controller.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsx index 6e8b72b7e..b92bf5c19 100644 --- a/apps/web/src/common/dialog-controller.tsx +++ b/apps/web/src/common/dialog-controller.tsx @@ -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);