Skip to content

Commit 607e3fd

Browse files
committed
remove Kind from Alert yaml view
1 parent 54b5d95 commit 607e3fd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ui/components/AlertsTable.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,16 @@ function AlertsTable({ className, rows = [] }: Props) {
120120
filters={initialFilterState}
121121
/>
122122
<Dialog open={yamlView !== null} onClose={() => setYamlView(null)}>
123-
{yamlView && <DialogYamlView object={yamlView} yaml={yamlView?.yaml} />}
123+
{yamlView && (
124+
<DialogYamlView
125+
object={{
126+
name: yamlView.name,
127+
namespace: yamlView.namespace,
128+
kind: yamlView.type,
129+
}}
130+
yaml={yamlView.yaml}
131+
/>
132+
)}
124133
</Dialog>
125134
</>
126135
);

0 commit comments

Comments
 (0)