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:
parent
bb44226f9c
commit
2e29e9556d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user