Skip to content

Commit

Permalink
Fix possible undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 7, 2024
1 parent 8496d00 commit 3aea494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/DataDialog/DataDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 3aea494

Please sign in to comment.