latest
This commit is contained in:
@@ -207,7 +207,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
|
||||
|
||||
logger.debug('context-switch', '✨ Default node fetched', {
|
||||
nodeId: defaultNode.id,
|
||||
tldraw_snapshot: defaultNode.tldraw_snapshot,
|
||||
node_storage_path: defaultNode.node_storage_path,
|
||||
type: defaultNode.type
|
||||
});
|
||||
|
||||
@@ -353,7 +353,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
|
||||
|
||||
const node: NavigationNode = {
|
||||
id: nodeId,
|
||||
tldraw_snapshot: nodeData.node_data.tldraw_snapshot || '',
|
||||
node_storage_path: nodeData.node_data.node_storage_path || '',
|
||||
label: nodeData.node_data.title || nodeData.node_data.user_name || nodeId,
|
||||
type: nodeData.node_type
|
||||
};
|
||||
@@ -361,7 +361,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
|
||||
logger.debug('navigation', '📍 Adding new node to history', {
|
||||
nodeId: node.id,
|
||||
type: node.type,
|
||||
tldraw_snapshot: node.tldraw_snapshot
|
||||
node_storage_path: node.node_storage_path
|
||||
});
|
||||
|
||||
// Add to history and update state
|
||||
@@ -414,7 +414,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
|
||||
if (nodeData) {
|
||||
const node: NavigationNode = {
|
||||
id: currentState.node.id,
|
||||
tldraw_snapshot: nodeData.node_data.tldraw_snapshot || '',
|
||||
node_storage_path: nodeData.node_data.node_storage_path || '',
|
||||
label: nodeData.node_data.title || nodeData.node_data.user_name || currentState.node.id,
|
||||
type: nodeData.node_type
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user