mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 17:08:58 +01:00
fix(react/type_widgets): relation map getting occassionally wiped
This commit is contained in:
parent
c5c304f85b
commit
e8e93e985d
@ -192,6 +192,8 @@ async function useRelationData(noteId: string, mapData: MapData | undefined, map
|
||||
const [ inverseRelations, setInverseRelations ] = useState<RelationMapPostResponse["inverseRelations"]>();
|
||||
|
||||
async function refresh() {
|
||||
if (!noteIds) return;
|
||||
|
||||
const data = await server.post<RelationMapPostResponse>("relation-map", { noteIds, relationMapNoteId: noteId });
|
||||
const relations: ClientRelation[] = [];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user