Skip to content

Commit 9e7760d

Browse files
fix: Fluxlist undefined error fix (#118)
1 parent f8f9739 commit 9e7760d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

public/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"tableVersionHeader": "Revision",
1717
"noFluxError": "Please install flux to view this component",
1818
"gitOpsTitle": "GitOps",
19-
"kustomizationsTitle": "Kustomizations"
19+
"kustomizationsTitle": "Kustomizations",
20+
"undefinedError": "Something went wrong"
2021
},
2122
"ProvidersList": {
2223
"tableNameHeader": "Name",

src/components/ControlPlane/FluxList.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export default function FluxList() {
138138
if (repoErr || kustomizationErr) {
139139
return (
140140
<IllustratedError
141-
details={repoErr.message || kustomizationErr.message}
141+
details={
142+
repoErr?.message ||
143+
kustomizationErr?.message ||
144+
t('FluxList.undefinedError')
145+
}
142146
title={t('FluxList.noFluxError')}
143147
/>
144148
);

0 commit comments

Comments
 (0)