⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
fix: update tags
Daniel5328be208b00
diff --git a/components/InputSelect/TagSelection.tsx b/components/InputSelect/TagSelection.tsxindex a8f02d00..819c9aee 100644--- a/components/InputSelect/TagSelection.tsx+++ b/components/InputSelect/TagSelection.tsx@@ -27,7 +27,7 @@ export default function ({ onChange, defaultValue }: Props) {return (<CreatableSelect- isClearable={false}+ isClearableonChange={onChange}options={options}styles={styles}diff --git a/lib/api/controllers/links/updateLink.ts b/lib/api/controllers/links/updateLink.tsindex 9a6a27e6..b3318367 100644--- a/lib/api/controllers/links/updateLink.ts+++ b/lib/api/controllers/links/updateLink.ts@@ -39,6 +39,7 @@ export default async function (link: ExtendedLink, userId: number) {},},tags: {+ set: [],connectOrCreate: link.tags.map((tag) => ({where: {name_ownerId: {diff --git a/store/links.ts b/store/links.tsindex 312007c2..62c773f7 100644--- a/store/links.ts+++ b/store/links.ts@@ -44,8 +44,6 @@ const useLinkStore = create<LinkStore>()((set) => ({return response.ok;},updateLink: async (link) => {- console.log(link);-const response = await fetch("/api/routes/links", {body: JSON.stringify(link),headers: {