Skip to content

Commit

Permalink
fix: race condition in clearing pipeline state after namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Dec 11, 2024
1 parent e4689e0 commit 5ac21a9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions website/src/contexts/PipelineContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,6 @@ export const PipelineProvider: React.FC<{ children: React.ReactNode }> = ({
localStorageKeys.SYSTEM_PROMPT_KEY,
JSON.stringify(stateRef.current.systemPrompt)
);
localStorage.setItem(
localStorageKeys.NAMESPACE_KEY,
JSON.stringify(stateRef.current.namespace)
);
setUnsavedChanges(false);
}, []);

Expand Down Expand Up @@ -417,7 +413,6 @@ export const PipelineProvider: React.FC<{ children: React.ReactNode }> = ({
namespace: null,
});
setUnsavedChanges(false);
console.log("Pipeline state cleared!");
}, []);

const setStateAndUpdate = useCallback(
Expand Down

0 comments on commit 5ac21a9

Please sign in to comment.