diff --git a/client/src/components/DataDialog/DataDialog.vue b/client/src/components/DataDialog/DataDialog.vue index 11e339446680..50a417f0d070 100644 --- a/client/src/components/DataDialog/DataDialog.vue +++ b/client/src/components/DataDialog/DataDialog.vue @@ -98,7 +98,7 @@ function getHistoryUrl() { if (props.filterOkState) { queryString += "&q=state-eq&qv=ok"; } - if (props.filterByTypeIds.length > 0) { + if (props.filterByTypeIds && props.filterByTypeIds.length > 0) { queryString += `&q=type_id-in&qv=${props.filterByTypeIds.join(",")}`; } return `${getAppRoot()}api/histories/${props.history}/contents?v=dev${queryString}`;