FIX: correctly check for hasData in admin-report (#31197)

Using length is not working on javascript objects and this would always
be falsey.

```
const test = { foo: 1 };
test.length // undefined
```
This commit is contained in:
Joffrey JAFFEUX
2025-02-05 17:19:33 +01:00
committed by GitHub
parent bb91561b9e
commit 4a7a9efbb9

View File

@@ -156,7 +156,7 @@ export default class AdminReport extends Component {
}
get hasData() {
return this.model?.data?.length > 0;
return isPresent(this.model?.data);
}
get disabledLabel() {