Merge branch 'dev' into feat/encounter-status-107
This commit is contained in:
@@ -6,12 +6,10 @@ export interface Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function recStrToItem(input: Record<string, string>): Item[] {
|
export function recStrToItem(input: Record<string, string>): Item[] {
|
||||||
console.log(input)
|
|
||||||
const items: Item[] = []
|
const items: Item[] = []
|
||||||
let idx = 0;
|
let idx = 0;
|
||||||
for (const key in input) {
|
for (const key in input) {
|
||||||
if (input.hasOwnProperty(key)) {
|
if (input.hasOwnProperty(key)) {
|
||||||
const value = input[key]
|
|
||||||
items.push({
|
items.push({
|
||||||
value: key || ('unknown-' + idx),
|
value: key || ('unknown-' + idx),
|
||||||
label: input[key] || ('unknown-' + idx),
|
label: input[key] || ('unknown-' + idx),
|
||||||
|
|||||||
Reference in New Issue
Block a user