mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-11 22:51:05 +00:00
fix: update document node borderColor on theme change
Cached document nodes were not updating their borderColor when the theme changed (e.g. light/dark mode switch), while memory nodes were. This caused a visual inconsistency where document borders retained the previous theme's color.
This commit is contained in:
parent
44ab6a5fc6
commit
f93e3f5bac
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ export function useGraphData(
|
|||
|
||||
if (docNode) {
|
||||
docNode.data = docData
|
||||
docNode.borderColor = colors.docStroke
|
||||
docNode.isDragging = draggingNodeId === doc.id
|
||||
} else {
|
||||
docNode = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue