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 05ded8b commit 8a99b2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/app/src/components/graph/components/NodeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Loader } from '@/components/loader';
import { toastError, toastSuccess } from '@/lib/ui-error';
import { cn } from '@/lib/utils';
import { useContext, useEffect, useMemo, useState } from 'react';
import type { Entity } from '../utils';
import type { IdType } from '../network/Network';
import { useRemote } from '../remote';
import { useDirtyEntity } from '../useDirtyEntity';
import { type Entity, handleServerEntity } from '../utils';
import { EditingButton } from './EditingButton';
import { InputField } from './InputField';
import { JsonField } from './JsonField';
Expand All @@ -33,7 +33,7 @@ export function NodeDetails ({
return Array.from(network.nodeNeighborhoods(entity.id) ?? []).map(id => network.node(id)!);
}, [network, entity.id]);

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

// dirty set
Expand Down Expand Up @@ -75,7 +75,7 @@ export function NodeDetails ({
</div>
{entity.synopsis_info?.topic && <section>
<h6 className="text-xs font-bold text-accent-foreground mb-1">Synopsis topic</h6>
<p className='block w-full text-xs text-accent-foreground'>
<p className="block w-full text-xs text-accent-foreground">
{entity.synopsis_info.topic}
</p>
</section>}
Expand Down

0 comments on commit 8a99b2c

Please sign in to comment.