Skip to content

Commit

Permalink
Cleaned up some frontend leftover debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
RickdeJager committed Oct 18, 2022
1 parent b79ca6e commit 2debe29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions frontend/src/api.ts
Expand Up @@ -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");
// }
// }
// })
// );
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/Header.tsx
Expand Up @@ -42,7 +42,6 @@ function ServiceSelection() {
...(services || []),
];
let [searchParams, setSearchParams] = useSearchParams();
console.log(...searchParams.entries(), service_select);
return (
<select
value={searchParams.get(FILTER_KEY) ?? ""}
Expand Down

0 comments on commit 2debe29

Please sign in to comment.