fix(scaffolder): show progressbar if no data

This commit is contained in:
Ivan Shmidt
2020-06-26 09:27:24 +02:00
parent d3e06c668c
commit d65c67ea93
@@ -90,7 +90,7 @@ const ScaffolderPage: React.FC<{}> = () => {
</Link>
.
</Typography>
{isValidating && <LinearProgress />}
{!templates && isValidating && <LinearProgress />}
<Grid container>
{templates &&
templates.map(template => {
@@ -103,7 +103,7 @@ const ScaffolderPage: React.FC<{}> = () => {
}`}
type={template.spec.type ?? ''}
description={template.metadata.description ?? '-'}
tags={template.metadata?.tags ?? []}
tags={(template.metadata?.tags as string[]) ?? []}
/>
</Grid>
);