Explorar el Código

fix unresolved match (#4284)

ianedwards hace 2 años
padre
commit
68cd439d8d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      dashboard/src/main/home/app-dashboard/apps/Addon.tsx

+ 1 - 0
dashboard/src/main/home/app-dashboard/apps/Addon.tsx

@@ -36,6 +36,7 @@ export const Addon: React.FC<AddonProps> = ({ addon, view }) => {
     const host = match(addon.config.type)
     const host = match(addon.config.type)
       .with("postgres", () => "postgres-postgres-hl")
       .with("postgres", () => "postgres-postgres-hl")
       .with("redis", () => "redis-redis")
       .with("redis", () => "redis-redis")
+      .exhaustive();
 
 
     return `${host}.${currentDeploymentTarget.namespace}.svc.cluster.local:${port}`;
     return `${host}.${currentDeploymentTarget.namespace}.svc.cluster.local:${port}`;
   }, [currentDeploymentTarget, addon.name.value]);
   }, [currentDeploymentTarget, addon.name.value]);