Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/components/src/navigation/DashboardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { GLOBAL_SHORTCUTS } from '../shortcuts';

export interface DashboardListProps {
onSelect: (tab: NavTabItem) => void;
tabs?: NavTabItem[];
tabs?: readonly NavTabItem[];
}

/**
Expand Down
10 changes: 6 additions & 4 deletions packages/jsapi-utils/src/TableUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1852,12 +1852,13 @@ export class TableUtils {
*/
async applyFilter<T extends DhType.Table | DhType.TreeTable>(
table: T | null | undefined,
filters: DhType.FilterCondition[],
filters: readonly DhType.FilterCondition[],
timeout = TableUtils.APPLY_TABLE_CHANGE_TIMEOUT_MS
): Promise<T | null> {
const { dh } = this;
return TableUtils.executeAndWaitForEvent(
t => t?.applyFilter(filters),
// TODO: #21450 Update JS API to accept readonly arrays
t => t?.applyFilter(filters as DhType.FilterCondition[]),
table,
dh.Table.EVENT_FILTERCHANGED,
timeout
Expand All @@ -1875,12 +1876,13 @@ export class TableUtils {
*/
async applySort<T extends DhType.Table | DhType.TreeTable>(
table: T | null | undefined,
sorts: DhType.Sort[],
sorts: readonly DhType.Sort[],
timeout = TableUtils.APPLY_TABLE_CHANGE_TIMEOUT_MS
): Promise<T | null> {
const { dh } = this;
return TableUtils.executeAndWaitForEvent(
t => t?.applySort(sorts),
// TODO: #21450 Update JS API to accept readonly arrays
t => t?.applySort(sorts as DhType.Sort[]),
table,
dh.Table.EVENT_SORTCHANGED,
timeout
Expand Down
Loading