1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02: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

View File

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