Skip to content

Commit

Permalink
fix: minor ui bugs (#861)
Browse files Browse the repository at this point in the history
Signed-off-by: veds-g <guptavedant2312@gmail.com>
  • Loading branch information
veds-g authored and whynowy committed Jul 18, 2023
1 parent 9478e30 commit 8d49c0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ export function NamespaceRowContent(props: NamespaceRowContentProps) {
fontSize: "1rem",
}}
>
<Box
sx={{
fontWeight: 400,
fontSize: "0.8rem",
color: "#0000008a",
width: "fit-content",
mx: "1rem",
}}
>
Pipelines
</Box>
<List>
{pipelines &&
pipelines.map((pipelineId, idx) => {
return (
<div key={`ns-row-list-${idx}`}>
<Box
sx={{
fontWeight: 400,
fontSize: "0.8rem",
color: "#0000008a",
width: "fit-content",
mx: "1rem",
}}
>
Pipelines
</Box>
<ListItem key={pipelineId}>
<Link
to={`/namespaces/${namespaceId}/pipelines/${pipelineId}`}
Expand Down
6 changes: 4 additions & 2 deletions ui/src/utils/fetcherHooks/pipelineViewFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,13 @@ export const usePipelineViewFetch = (
if (podsErr.length > 0) setPodsErr(podsErr);
})
.then(() => {
setVertexPods(vertexToPodsMap);
if (!isEqual(vertexPods, vertexToPodsMap)) {
setVertexPods(vertexToPodsMap);
}
})
.catch(console.error);
}
}, [spec]);
}, [spec, requestKey]);

const getVertexMetrics = useCallback(() => {
const vertexToMetricsMap = new Map();
Expand Down

0 comments on commit 8d49c0f

Please sign in to comment.