Skip to content

Build your personal knowledge base with Trilium Notes

feat(views/table): disable reordering in search

Elian Doran63537aff20bb
diff --git a/apps/client/src/widgets/view_widgets/table_view/dragging.ts b/apps/client/src/widgets/view_widgets/table_view/dragging.ts
index 598e5a34a4..39d5a0178f 100644
--- a/apps/client/src/widgets/view_widgets/table_view/dragging.ts
+++ b/apps/client/src/widgets/view_widgets/table_view/dragging.ts
@@ -3,7 +3,8 @@ import type FNote from "../../../entities/fnote.js";
import branches from "../../../services/branches.js";
export function canReorderRows(parentNote: FNote) {
- return !parentNote.hasLabel("sorted");
+ return !parentNote.hasLabel("sorted")
+ && parentNote.type !== "search";
}
export function configureReorderingRows(tabulator: Tabulator) {