Skip to content

Commit

Permalink
[front] - refactor: remove unused hash parameters in SpaceDataSourceV…
Browse files Browse the repository at this point in the history
…iewContentList

 - Eliminated redundant hash param state management for `action` and `documentId` in component
 - Simplified the component by removing unnecessary code, potentially enhancing maintainability
  • Loading branch information
JulesBelveze committed Mar 6, 2025
1 parent fe5ac53 commit 5fa10a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions front/components/spaces/SpaceDataSourceViewContentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ export const SpaceDataSourceViewContentList = ({
DEFAULT_VIEW_TYPE
) as [ContentNodesViewType, (viewType: ContentNodesViewType) => void];
const router = useRouter();
const [action, setAction] = useHashParam("action");
const [documentId, setDocumentId] = useHashParam("documentId");
const showSpaceUsage =
dataSourceView.kind === "default" && isManaged(dataSourceView.dataSource);
const { spaces } = useSpaces({
Expand Down

0 comments on commit 5fa10a0

Please sign in to comment.