m
This commit is contained in:
@@ -110,7 +110,9 @@ export function useTradingHoursPage() {
|
||||
const map: Record<string, Const> = {}
|
||||
const draftMap: Record<string, string> = {}
|
||||
for (const row of rows || []) {
|
||||
if (!row.key || !TRADING_HOURS_SETTING_KEY_SET.has(row.key)) continue
|
||||
if (!row.key) continue
|
||||
const fromMenu = String(row.menu ?? '').trim() === 'trading_hours'
|
||||
if (!fromMenu && !TRADING_HOURS_SETTING_KEY_SET.has(row.key)) continue
|
||||
map[row.key] = row
|
||||
if (row.id != null) draftMap[String(row.id)] = row.value ?? ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user