Skip to content

Commit

Permalink
fix(desk): recompute default sort order on desk structure change
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 19, 2022
1 parent e2209ec commit 4f9a353
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ export const DocumentListPane = memo(function DocumentListPane(props: DocumentLi
// Ensure that we use the defaultOrdering value from structure builder if any as the default
const defaultSortOrder = useMemo(() => {
return defaultOrdering?.length > 0 ? {by: defaultOrdering} : DEFAULT_ORDERING
}, [])
}, [defaultOrdering])

const [sortOrderRaw, setSortOrder] = useDeskToolSetting<SortOrder>(
typeName,
Expand Down

0 comments on commit 4f9a353

Please sign in to comment.