Skip to content

Commit

Permalink
SNRGY-3690 fix empty GET /extended-devices device-type-id filter
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Dec 11, 2024
1 parent b00bb40 commit 1042d0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class DeviceInstancesService {
if (options.searchText && options.searchText !== '') {
params = params.set('search', options.searchText);
}
if(options.deviceTypeIds!==null && options.deviceTypeIds!==undefined && options.deviceTypeIds.join){
if(options.deviceTypeIds!==null && options.deviceTypeIds!==undefined && options.deviceTypeIds.join && options.deviceTypeIds.length > 0){
params = params.set('device-type-ids', options.deviceTypeIds.join(','));
}
if(options.deviceIds!==null && options.deviceIds!==undefined && options.deviceIds.join){
Expand Down

0 comments on commit 1042d0e

Please sign in to comment.