This commit is contained in:
2026-08-24 12:59:34 +03:30
parent 6bbd8704b8
commit 010e287c70
4 changed files with 29 additions and 6 deletions
@@ -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 ?? ''
}