1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 07:17:55 +01:00

fix: Evita errore quando type non esiste

This commit is contained in:
Maicol Battistini 2021-12-28 00:37:31 +01:00
parent bb44226f9c
commit 2e29e9556d
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A

View File

@ -1,5 +1,6 @@
import '@material/mwc-checkbox';
import {collect} from 'collect.js';
import {
type Children,
type Vnode
@ -31,7 +32,8 @@ export default class TableRow extends Component {
}
for (const child: Vnode of children) {
if (child.attrs.type === 'checkbox') {
const attributes = collect(child.attrs)
if (attributes.get('type') === 'checkbox') {
break;
}
}