fix: bugs in displaying repo / plan / activity status

This commit is contained in:
garethgeorge
2024-09-04 22:16:04 -07:00
parent bfaad8b69e
commit cceda4fdea
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export const ActivityBar = () => {
const displayName = displayTypeToString(getTypeForDisplay(op));
return (
<span key={idx}>
<span key={idx} style={{ marginRight: "2em" }}>
{displayName} in progress for plan {op.planId} to {op.repoId} for{" "}
{formatDuration(Date.now() - Number(op.unixTimeStartMs))}
</span>
+5 -1
View File
@@ -313,7 +313,11 @@ const IconForResource = ({
case "createdOperations":
case "updatedOperations":
const ops = event.event.value.operations;
if (ops.find((op) => op.planId === planId && op.repoId === repoId)) {
if (
ops.find(
(op) => (!planId || op.planId === planId) && op.repoId === repoId
)
) {
refresh();
}
break;