Skip to content

Commit d28e68c

Browse files
committed
ad exception for Filter requests when checking if data provider already exists
1 parent 5a5b3aa commit d28e68c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/main/server/BaseServer.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,13 @@ export default abstract class BaseServer {
282282
return
283283
}
284284

285-
// 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
286-
if (!this.contentStore.dataBooks.get(dataProviderScreenName)?.has(request.dataProvider) && !this.missingDataFetches.includes(request.dataProvider)) {
285+
// If the dataprovider doesn't exist yet and it is not under the missingdatafetches array
286+
// it doesn't exist and the request is not to be sent unless is a Filter Request
287+
if (
288+
endpoint != REQUEST_KEYWORDS.FILTER &&
289+
!this.contentStore.dataBooks.get(dataProviderScreenName)?.has(request.dataProvider) &&
290+
!this.missingDataFetches.includes(request.dataProvider)
291+
) {
287292
reject("Dataprovider doesn't exist: " + request.dataProvider);
288293
return
289294
}

0 commit comments

Comments
 (0)