Skip to content

Commit

Permalink
feat(on demand): check if already firing off request for products
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Feb 10, 2025
1 parent 3c226c0 commit 92e4b8c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,12 @@ export class ScenesListComponent implements OnInit, OnDestroy, AfterContentInit
.filter(s => s.isDummyProduct)
.filter(s => this.loadedInProjects.has(s.metadata.job.name) && !this.loadingDummyJobs.has(s.name));

if (scenesToLoad.length === 0 && scenesOutsideInitialLoad.length === 0) {
scenesToLoad = [...scenesToLoad, ...scenesOutsideInitialLoad]

if (scenesToLoad.length === 0 || scenesToLoad.every(s => this.loadingJobs.hasOwnProperty(s.name))) {
return;
}
scenesToLoad = [...scenesToLoad, ...scenesOutsideInitialLoad]

scenesToLoad.forEach(
s => this.loadingJobs[s.name] = s
)
Expand Down

0 comments on commit 92e4b8c

Please sign in to comment.