1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

fix: 🐛 Fix temporaneo (aspettando ecrmnn/collect.js#294)

This commit is contained in:
Maicol Battistini
2022-01-26 19:54:28 +01:00
parent 82152f4c70
commit 8c1641058e

View File

@@ -459,7 +459,9 @@ export class RecordsPage extends Page {
switch (field.type ?? field.getAttribute('type')) {
case 'select': {
const section = collect(this.sections)
.first((s) => field.id in s.fields);
// (temporary) .first((s) => field.id in s.fields);
.filter((s) => field.id in s.fields)
.first();
let {options} = section.fields[field.id] as SelectT;
if (options instanceof Promise) {
options = await options;