Skip to content

Commit

Permalink
Grayson fix empty state flash (#912)
Browse files Browse the repository at this point in the history
* no flash of empty list before showing proper empty snapshot state

* code position
  • Loading branch information
GraysonNull committed Aug 7, 2020
1 parent 02c6282 commit 23bf93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotsadm/web/src/components/apps/AppSnapshots.jsx
Expand Up @@ -368,7 +368,7 @@ class AppSnapshots extends Component {
const appTitle = app?.name;
const inProgressSnapshotExist = snapshots?.find(snapshot => snapshot.status === "InProgress");

if (isLoadingSnapshotSettings || (isStartButtonClicked && snapshots?.length === 0) || startingSnapshot) {
if (isLoadingSnapshotSettings || !hasSnapshotsLoaded || (isStartButtonClicked && snapshots?.length === 0) || startingSnapshot) {
return (
<div className="flex-column flex1 alignItems--center justifyContent--center">
<Loader size="60" />
Expand Down

0 comments on commit 23bf93a

Please sign in to comment.