diff --git a/frontend/src/api.ts b/frontend/src/api.ts index c5824fe..5ec5a27 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -77,11 +77,15 @@ export const tulipApi = createApi({ // // `updateQueryData` requires the endpoint name and cache key arguments, // // so it knows which piece of cache state to update // const patchResult = dispatch( - // apiSlice.util.updateQueryData("getPosts", undefined, (draft) => { - // // The `draft` is Immer-wrapped and can be "mutated" like in createSlice - // const post = draft.find((post) => post.id === postId); - // if (post) { - // post.reactions[reaction]++; + // tulipApi.util.updateQueryData("getFlows", undefined, (flows) => { + // // The `flows` is Immer-wrapped and can be "mutated" like in createSlice + // const flow = flows.find((flow) => flow._id.$oid === id); + // if (flow) { + // if (star) { + // flow.tags.push("starred"); + // } else { + // flow.tags = flow.tags.filter((tag) => tag != "starred"); + // } // } // }) // ); diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index cc75d42..656b60e 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -42,7 +42,6 @@ function ServiceSelection() { ...(services || []), ]; let [searchParams, setSearchParams] = useSearchParams(); - console.log(...searchParams.entries(), service_select); return (