fix: workspace navigation path from /workspace to /workspaces

This commit is contained in:
Haileyesus
2026-04-07 17:50:35 +03:00
parent 8e6fc15a1d
commit 7200533dda

View File

@@ -1,6 +1,5 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import {
deleteSessionById,
deleteWorkspaceById,
@@ -107,7 +106,7 @@ export const useWorkspaces = () => {
return nextSet;
});
navigate(`/workspace/${encodeURIComponent(workspaceId)}`);
navigate(`/workspaces/${encodeURIComponent(workspaceId)}`);
}, [navigate]);
const openSession = useCallback(