Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from ulu-telegram/master
Browse files Browse the repository at this point in the history
Update LeftSideMenuItems.tsx
ulugmer authored Nov 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents fe0f553 + c485bd0 commit 1475a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/left/main/LeftSideMenuItems.tsx
Original file line number Diff line number Diff line change
@@ -135,9 +135,10 @@ const LeftSideMenuItems = ({
};

const [workspaceHistory, setWorkspaceHistory] = useState<string[]>([]);

const { showNotification } = getActions();
const handleSelectWorkspace = useCallback((workspaceId: string) => {
saveCurrentWorkspaceToLocalStorage(workspaceId);
showNotification({ message: 'Workspace is changing...' });
setWorkspaceHistory((prevHistory) => {
if (prevHistory[prevHistory.length - 1] !== workspaceId) {
return [...prevHistory, workspaceId];

0 comments on commit 1475a4c

Please sign in to comment.