mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
Fix error when clicking on header for tables with no rows (#12408)
This commit is contained in:
@@ -15,7 +15,7 @@ export interface IFindPosition {
|
||||
}
|
||||
|
||||
function defaultSort<T extends { [key: string]: any }>(args: Slick.OnSortEventArgs<T>, data: Array<T>): Array<T> {
|
||||
if (!args.sortCol || !args.sortCol.field) {
|
||||
if (!args.sortCol || !args.sortCol.field || data.length === 0) {
|
||||
return data;
|
||||
}
|
||||
const field = args.sortCol.field;
|
||||
|
||||
Reference in New Issue
Block a user