capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

Kustomization breaks UI

Open SorsOps opened this issue 1 year ago • 1 comments

This line is causing a break in the UI when I navigate to kustomizations and causing the entire UI to crash

https://github.com/gimlet-io/capacitor/blob/d8c8bc95c5af71ddf8baabc71da744dde9dcbc0c/web/src/Kustomization.jsx#L29

I have one kustomization that is in an error state that is the likely culprit, but I don't expect the entire App to crash if this happens,

We should add an error boundary for cases like this to prevent the entire UI from crashing and also in the case that a kustomization is in an errored state

SorsOps avatar Apr 17 '24 18:04 SorsOps

https://github.com/gimlet-io/capacitor/blob/d8c8bc95c5af71ddf8baabc71da744dde9dcbc0c/web/src/OCIArtifactWidget.jsx#L8

also breaks the UI with the Console saying

TypeError: undefined has no properties

So without further debugging it, I guess the Status in line 6 has no property artifact.

jonasbadstuebner avatar May 08 '24 14:05 jonasbadstuebner