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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user