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[] {
|
||||
console.log(input)
|
||||
const items: Item[] = []
|
||||
let idx = 0;
|
||||
for (const key in input) {
|
||||
if (input.hasOwnProperty(key)) {
|
||||
const value = input[key]
|
||||
items.push({
|
||||
value: key || ('unknown-' + idx),
|
||||
label: input[key] || ('unknown-' + idx),
|
||||
|
||||
Reference in New Issue
Block a user