fix(relation_map): floating buttons stuck when showing source

This commit is contained in:
Elian Doran 2025-10-05 18:38:40 +03:00
parent 62bb8ac89a
commit f30bdd54b1
No known key found for this signature in database

View File

@ -218,8 +218,8 @@ function SaveToNoteButton({ note }: FloatingButtonContext) {
/>
}
function RelationMapButtons({ note, triggerEvent }: FloatingButtonContext) {
const isEnabled = (note.type === "relationMap");
function RelationMapButtons({ note, isDefaultViewMode, triggerEvent }: FloatingButtonContext) {
const isEnabled = (note.type === "relationMap" && isDefaultViewMode);
return isEnabled && (
<>
<FloatingButton