Skip to content

Commit e9273ff

Browse files
authored
Fix crawl running filter being passed incorrectly to backend (#2904)
Quick fix for an issue where the default state of the crawl running filter on the workflows list page was incorrectly filtering out running crawls.
1 parent a13c533 commit e9273ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/pages/org/workflows-list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ type FilterBy = {
101101
name?: string;
102102
firstSeed?: string;
103103
schedule?: boolean;
104-
isCrawlRunning?: boolean;
104+
isCrawlRunning?: true;
105105
};
106106

107107
/**
@@ -190,7 +190,7 @@ export class WorkflowsList extends BtrixElement {
190190
params.set(key, value[key] ? "true" : "false");
191191
break;
192192
case "isCrawlRunning":
193-
if (value[key]) {
193+
if (value[key] as true | undefined) {
194194
params.set(key, "true");
195195
} else {
196196
params.delete(key);
@@ -208,7 +208,7 @@ export class WorkflowsList extends BtrixElement {
208208
schedule: params.has("schedule")
209209
? params.get("schedule") === "true"
210210
: undefined,
211-
isCrawlRunning: params.get("isCrawlRunning") === "true",
211+
isCrawlRunning: params.get("isCrawlRunning") === "true" || undefined,
212212
};
213213
},
214214
);

0 commit comments

Comments
 (0)