Skip to content

Commit

Permalink
Merge pull request #1663 from girder/add-guard
Browse files Browse the repository at this point in the history
Add a guard around sorting item lists
  • Loading branch information
manthey authored Oct 3, 2024
2 parents 96802d0 + 652eb38 commit 38ba6ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
### Bug Fixes

- Fix styling images with empty tile layers ([#1650](../../pull/1650))
- Add a guard around sorting item lists ([#1663](../../pull/1663))

## 1.29.11

Expand Down
2 changes: 1 addition & 1 deletion girder/girder_large_image/web_client/views/itemList.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ wrap(ItemListWidget, 'initialize', function (initialize, settings) {
};
});
update = true;
} else if (this._confList() && this._confList().defaultSort && this._confList().defaultSort.length) {
} else if (this._confList && this._confList() && this._confList().defaultSort && this._confList().defaultSort.length) {
this._lastSort = this._confList().defaultSort;
update = true;
}
Expand Down

0 comments on commit 38ba6ce

Please sign in to comment.