Skip to content

Commit

Permalink
fix: Show folder name on public breadcrumb
Browse files Browse the repository at this point in the history
This error comes from the refactor of this commit af02abb
  • Loading branch information
cballevre committed Nov 4, 2024
1 parent b353996 commit 1128acf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/views/Folder/OldFolderViewBreadcrumb.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import get from 'lodash/get'
import React, { useCallback } from 'react'
import { useNavigate } from 'react-router-dom'

Expand All @@ -14,7 +13,7 @@ const FolderViewBreadcrumb = ({ currentFolderId, getBreadcrumbPath }) => {
currentFolderQuery.definition,
currentFolderQuery.options
)
const currentFolder = get(currentFolderQueryResults, 'data[0]')
const currentFolder = currentFolderQueryResults.data
const path = currentFolder ? getBreadcrumbPath(currentFolder) : []

const onBreadcrumbClick = useCallback(
Expand Down

0 comments on commit 1128acf

Please sign in to comment.