Properly show model

This commit is contained in:
David Corbitt
2023-08-12 02:58:28 -07:00
parent 35fb554038
commit b06ab2cbf9

View File

@@ -51,11 +51,6 @@ export const TableRow = ({
const timeAgo = dayjs(loggedCall.requestedAt).fromNow(); const timeAgo = dayjs(loggedCall.requestedAt).fromNow();
const fullTime = dayjs(loggedCall.requestedAt).toString(); const fullTime = dayjs(loggedCall.requestedAt).toString();
const model = useMemo(
() => loggedCall.tags.find((tag) => tag.name.startsWith("$model"))?.value,
[loggedCall.tags],
);
const durationCell = ( const durationCell = (
<Td isNumeric> <Td isNumeric>
{loggedCall.cacheHit {loggedCall.cacheHit
@@ -92,7 +87,7 @@ export const TableRow = ({
borderWidth={1} borderWidth={1}
fontSize="xs" fontSize="xs"
> >
{model} {loggedCall.model}
</Text> </Text>
</HStack> </HStack>
</Td> </Td>