web: fix color cannot be renamed

This commit is contained in:
Abdullah Atta
2024-02-16 15:29:31 +05:00
parent ed1c963e6a
commit 44ac3732a7

View File

@@ -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);