fix: device type filter not work in DeviceAlarmDetailModal
This commit is contained in:
@@ -64,7 +64,7 @@ const tableColumns: DataTableColumns<NdmDeviceAlarmLogResultVO> = [
|
||||
return DeviceTypeName[(rowData.deviceType ?? DeviceType.Camera) as DeviceTypeCode];
|
||||
},
|
||||
filterMultiple: true,
|
||||
filterOptions: Object.values(DeviceTypeName).map((typeName) => ({ label: typeName, value: typeName })),
|
||||
filterOptions: Object.values(DeviceType).map((deviceType) => ({ label: DeviceTypeName[deviceType], value: deviceType })),
|
||||
filter: (filterOptionValue, row) => {
|
||||
return row.deviceType === filterOptionValue;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user