Skip to content

Commit d0d67b8

Browse files
fix: Don’t render connect button when there are errors (#211)
1 parent 8d08ae3 commit d0d67b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ControlPlanes/ConnectButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function ConnectButton(props: Props) {
3737
const { t } = useTranslation();
3838

3939
const res = useApiResource(GetKubeconfig(props.secretKey, props.secretName, props.namespace));
40-
if (res.isLoading) {
40+
if (res.isLoading || res.error) {
4141
return <></>;
4242
}
4343
// eslint-disable-next-line @typescript-eslint/no-explicit-any

0 commit comments

Comments
 (0)