fix(editor): clicking the sorting button results in an error (#10800)

This commit is contained in:
zzj3720
2025-03-13 03:17:48 +00:00
parent 86729fb447
commit f6a62fa737
3 changed files with 5 additions and 10 deletions

View File

@@ -169,8 +169,7 @@ export class DatabaseHeaderColumn extends SignalWatcher(
const sortUtils = createSortUtils(
sortTrait,
this.closest('affine-data-view-renderer')?.view?.expose.eventTrace ??
(() => {})
this.closest('affine-data-view-renderer')?.view?.eventTrace ?? (() => {})
);
const sortList = sortUtils.sortList$.value;
const existingIndex = sortList.findIndex(