Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
persist query list by project (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjinp authored Feb 21, 2020
1 parent a77ccce commit 8fea143
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/containers/ResourceListBoardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const ResourceListBoardContainer: React.FunctionComponent<{

const [resourceLists = [], setResourceLists] = useLocalStorage<
ResourceBoardList[]
>(`resource-lists-${userId}`, [makeDefaultList()]);
>(`resource-lists-${userId}-${orgLabel}-${projectLabel}`, [
makeDefaultList(),
]);

React.useEffect(() => {
const sharedList = shareList && decodeShareableList(shareList);
Expand Down

0 comments on commit 8fea143

Please sign in to comment.