Skip to content

Commit

Permalink
check for detail component
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Dec 16, 2022
1 parent 6d9bdd4 commit 787dc0e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,12 @@ export const DiscoverGrid = ({
}
return { columns: sortingColumns, onSort: () => {} };
}, [sortingColumns, onTableSort, isSortEnabled]);
// todo may need to address this
const lead = useMemo(
() => getLeadControlColumns(!!setExpandedDoc).filter(({ id }) => controlColumnIds.includes(id)),
[controlColumnIds, setExpandedDoc]
() =>
getLeadControlColumns(!!(setExpandedDoc && DocumentView)).filter(({ id }) =>
controlColumnIds.includes(id)
),
[controlColumnIds, setExpandedDoc, DocumentView]
);

const additionalControls = useMemo(
Expand Down

0 comments on commit 787dc0e

Please sign in to comment.