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