Merge branch 'dev' into feat/encounter-status-107

This commit is contained in:
Andrian Roshandy
2025-10-11 00:38:10 +07:00
@@ -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),