mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-02 02:15:34 +08:00
fix: workspace navigation path from /workspace to /workspaces
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
import { useLocation, useNavigate } from 'react-router-dom';
|
import { useLocation, useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
deleteSessionById,
|
deleteSessionById,
|
||||||
deleteWorkspaceById,
|
deleteWorkspaceById,
|
||||||
@@ -107,7 +106,7 @@ export const useWorkspaces = () => {
|
|||||||
|
|
||||||
return nextSet;
|
return nextSet;
|
||||||
});
|
});
|
||||||
navigate(`/workspace/${encodeURIComponent(workspaceId)}`);
|
navigate(`/workspaces/${encodeURIComponent(workspaceId)}`);
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
const openSession = useCallback(
|
const openSession = useCallback(
|
||||||
|
|||||||
Reference in New Issue
Block a user