Skip to content

Commit

Permalink
fix: remove createdOn column from ACO lists (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
leopuleo committed Nov 3, 2023
1 parent 8b20b8a commit 6f243bb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion packages/app-aco/src/sorting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const validateOrGetDefaultDbSort = (
initial?: ListSearchRecordsSort
): ListSearchRecordsSort => {
if (!Array.isArray(initial) || initial.length === 0) {
return ["createdOn_DESC"];
return ["savedOn_DESC"];
}

return initial;
Expand Down
5 changes: 0 additions & 5 deletions packages/app-file-manager/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
return "-";
}
},
createdOn: {
header: "Created",
cell: ({ createdOn }: Entry) => <TimeAgo datetime={createdOn} />,
enableSorting: true
},
createdBy: {
header: "Author"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
enableSorting: true,
size: 400
},
createdOn: {
header: "Created",
className: "cms-aco-list-createdOn",
cell: ({ createdOn }: Entry) => <TimeAgo datetime={createdOn} />,
enableSorting: true
},
createdBy: {
header: "Author",
className: "cms-aco-list-createdBy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
enableSorting: true,
size: 400
},
createdOn: {
header: "Created",
cell: ({ createdOn }: Entry) => <TimeAgo datetime={createdOn} />,
enableSorting: true
},
createdBy: {
header: "Author"
},
Expand Down

0 comments on commit 6f243bb

Please sign in to comment.