Skip to content

Commit

Permalink
fix: use pane key in settings for document lists that do not have typ…
Browse files Browse the repository at this point in the history
…es available (#6335)
  • Loading branch information
cngonzalez committed Apr 11, 2024
1 parent e6c2d11 commit 57749e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const DocumentListPane = memo(function DocumentListPane(props: DocumentLi
const showIcons = displayOptions?.showIcons !== false
const [layout, setLayout] = useStructureToolSetting<GeneralPreviewLayoutKey>(
'layout',
typeName,
typeName ?? pane.id, //pane.id for anything that is not documentTypeList
defaultLayout,
)

Expand All @@ -133,7 +133,7 @@ export const DocumentListPane = memo(function DocumentListPane(props: DocumentLi

const [sortOrderRaw, setSortOrder] = useStructureToolSetting<SortOrder>(
'sort-order',
typeName,
typeName ?? pane.id, //pane.id for anything that is not documentTypeList
defaultSortOrder,
)

Expand Down

0 comments on commit 57749e5

Please sign in to comment.