diff --git a/frontend/web/components/pages/FeaturesPage.js b/frontend/web/components/pages/FeaturesPage.js index 545166ff5d7c..7036490002a7 100644 --- a/frontend/web/components/pages/FeaturesPage.js +++ b/frontend/web/components/pages/FeaturesPage.js @@ -30,6 +30,7 @@ const FeaturesPage = class extends Component { constructor(props, context) { super(props, context) this.state = { + loadedOnce: false, search: null, showArchived: false, sort: { label: 'Name', sortBy: 'name', sortOrder: 'asc' }, @@ -61,6 +62,7 @@ const FeaturesPage = class extends Component { params.environmentId !== oldParams.environmentId || params.projectId !== oldParams.projectId ) { + this.state.loadedOnce = false AppActions.getFeatures( params.projectId, params.environmentId, @@ -181,6 +183,9 @@ const FeaturesPage = class extends Component { totalFeatures, maxFeaturesAllowed, ) + if (projectFlags?.length && !this.state.loadedOnce) { + this.state.loadedOnce = true + } return (