mirror of
https://github.com/TriliumNext/Trilium.git
synced 2026-10-12 02:09:59 +00:00
The export wrote each note map as `data/note-map/<rootId>-<type>.json`, so two note map notes on the same root with other relation filters wrote the same file, the last one winning. `getNoteMapDataKey()` in commons keys a request by its root, kind and relation filters, sorted, so the same filters in any order give the same key. The export writes each request's map once, as `data/note-map/<n>.json`, and indexes it by its key in `rows.json` under `noteMaps`; a static froca source builds the key from `getNoteMap()`'s arguments to find it. `rows.json` is now written last, once the maps are known. The key avoids `toSorted()`, as the share theme targets Chrome 96. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>