Adding support for filter box in annotations (#8057)

* Adding support for filter box in annotations

* Fixing tox lint errors

* fixing lint errors
This commit is contained in:
Kartik Khare 2019-08-20 13:26:04 +05:30 committed by Krist Wongsuphasawat
parent 4e7ea3f3e2
commit ae16e69ebf
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,12 @@ export function runAnnotationQuery(annotation, timeout = 60, formData = null, ke
}),
{},
);
if (fd !== null) {
const hasExtraFilters = fd.extra_filters && fd.extra_filters.length > 0;
sliceFormData.extra_filters = hasExtraFilters ? fd.extra_filters : undefined;
}
const isNative = annotation.sourceType === ANNOTATION_SOURCE_TYPES.NATIVE;
const url = getAnnotationJsonUrl(annotation.value, sliceFormData, isNative);
const controller = new AbortController();