Skip to content

Commit

Permalink
Changed buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrislain committed Dec 11, 2024
1 parent 89d11a7 commit 353f6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/_layout/document-data-extractors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function ExtractorExamples({documentDataExtractor, is_selected, onClick}: {docum
</NumberInput>
</Flex>
</Td>
<Td></Td>
<Td>
<Textarea placeholder="Data to Extract"
onChange={(e)=>setData(JSON.parse(e.target.value))}
Expand All @@ -136,16 +137,15 @@ function ExtractorExamples({documentDataExtractor, is_selected, onClick}: {docum
}).then(()=> queryClient.invalidateQueries({ queryKey: ['document_data_extractors'] }));
}}>Add Example</Button>
</Td>
<Td></Td>
</Tr>
</Tbody>
<Tbody>
{documentDataExtractor.document_data_examples.map((documentDataExample) => (
<Tr key={documentDataExample.id} bgColor={secBgColor}>
<Td></Td>
<Td><Tag><Link href={"/documents#"+documentDataExample.document_id}>{documentDataExample.document_id}</Link></Tag></Td>
<Td><Text whiteSpace="pre-wrap">{documentDataExample.data}</Text></Td>
<Td></Td>
<Td><Text whiteSpace="pre-wrap">{documentDataExample.data}</Text></Td>
<Td></Td>
</Tr>
))}
Expand Down

0 comments on commit 353f6ef

Please sign in to comment.