Skip to content

Commit

Permalink
ad exception for Filter requests when checking if data provider alrea…
Browse files Browse the repository at this point in the history
…dy exists
  • Loading branch information
gimmixAT committed Feb 3, 2025
1 parent 5a5b3aa commit d28e68c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/server/BaseServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,13 @@ export default abstract class BaseServer {
return
}

// If the dataprovider doesn't exist yet and it is not under the missingdatafetches array. It doesn't exist and the request is not to be sent
if (!this.contentStore.dataBooks.get(dataProviderScreenName)?.has(request.dataProvider) && !this.missingDataFetches.includes(request.dataProvider)) {
// If the dataprovider doesn't exist yet and it is not under the missingdatafetches array
// it doesn't exist and the request is not to be sent unless is a Filter Request
if (
endpoint != REQUEST_KEYWORDS.FILTER &&
!this.contentStore.dataBooks.get(dataProviderScreenName)?.has(request.dataProvider) &&
!this.missingDataFetches.includes(request.dataProvider)
) {
reject("Dataprovider doesn't exist: " + request.dataProvider);
return
}
Expand Down

0 comments on commit d28e68c

Please sign in to comment.