Skip to content

Commit

Permalink
Merge branch 'feat/tasks' into feat/editable-vanilla-columns
Browse files Browse the repository at this point in the history
  • Loading branch information
GamerGirlandCo committed Oct 20, 2024
2 parents fa26495 + 690c72a commit 21f5f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/ui/views/task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function CollapseIndicator({
* @group Components
*/
export function ListItemFields({
displayedFields: displayedFieldsProp = [],
displayedFields: displayedFieldsProp,
item,
}: {
displayedFields?: TaskProps["displayedFields"];
Expand All @@ -200,7 +200,7 @@ export function ListItemFields({
const core = useContext(DATACORE_CONTEXT);
const { settings } = core;
const displayedFields = useMemo(() => {
if (displayedFieldsProp.length) return displayedFieldsProp;
if (displayedFieldsProp != undefined) return displayedFieldsProp;
else {
return Object.values(item.$infields).map((f) => {
return {
Expand Down

0 comments on commit 21f5f0a

Please sign in to comment.