Merge remote-tracking branch 'origin/main' into react/type_widgets

This commit is contained in:
Elian Doran
2025-10-05 19:59:46 +03:00

View File

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