Fix createOn (#2616)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-02-10 00:01:45 +06:00
committed by GitHub
parent 0f503edccb
commit 8d14dbef14
2 changed files with 10 additions and 6 deletions
@@ -34,9 +34,10 @@
_id: type.of
},
(res) => {
items = res[0]?.enumValues?.map((p) => {
return { id: p, label: p }
})
items =
res[0]?.enumValues?.map((p) => {
return { id: p, label: p }
}) ?? []
},
{ limit: 1 }
)