Skip to content

Commit

Permalink
JS-5224: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Aug 30, 2024
1 parent 159bcdd commit fffb3c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ts/component/sidebar/object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,15 @@ const SidebarObject = observer(class SidebarObject extends React.Component<{}, S
};

load (clear: boolean, callBack?: (message: any) => void) {
const option = U.Menu.getObjectContainerSortOptions(this.sortId, this.sortType).find(it => it.id == this.sortId);

let sorts: I.Sort[] = [];
let filters: I.Filter[] = [
{ relationKey: 'layout', condition: I.FilterCondition.NotEqual, value: I.ObjectLayout.Participant },
];

if (this.sortId) {
sorts.push({ type: this.sortType, relationKey: this.sortId });
if (option) {
sorts.push({ relationKey: option.relationKey, type: this.sortType });
} else {
sorts = sorts.concat([
{ type: I.SortType.Desc, relationKey: 'createdDate' },
Expand Down

0 comments on commit fffb3c6

Please sign in to comment.