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