Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Feb 24, 2025
1 parent 8a99b2c commit baea53e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app/src/components/graph/components/NodeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { JsonField } from './JsonField';
import { NetworkContext } from './NetworkContext';
import { TextareaField } from './TextareaField';

const loadEntity = (kbId: number, id: number) => getEntity(kbId, id).then(handleServerEntity);

export function NodeDetails ({
knowledgeBaseId,
entity,
Expand All @@ -33,7 +35,7 @@ export function NodeDetails ({
return Array.from(network.nodeNeighborhoods(entity.id) ?? []).map(id => network.node(id)!);
}, [network, entity.id]);

const latestData = useRemote(entity, (kb, id) => getEntity(kb, id).then(handleServerEntity), knowledgeBaseId, Number(entity.id));
const latestData = useRemote(entity, loadEntity, knowledgeBaseId, Number(entity.id));
const dirtyEntity = useDirtyEntity(knowledgeBaseId, entity.id);

// dirty set
Expand Down

0 comments on commit baea53e

Please sign in to comment.