Skip to content

Commit

Permalink
Assert presence of job state
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Jul 8, 2024
1 parent e24af99 commit 56f358c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/search/sql_async_search_interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class SQLAsyncSearchInterceptor extends SearchInterceptor {

const onPollingSuccess = (pollingResult: any) => {
if (pollingResult) {
const status = parseJobState(pollingResult.body.meta.status);
const status = parseJobState(pollingResult.body.meta.status)!;
switch (status) {
case JobState.SUCCESS:
return false;
Expand Down

0 comments on commit 56f358c

Please sign in to comment.