mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 16:46:06 -08:00
fix(session-bindings): guard optional stats config in compile path
This commit is contained in:
1 parent
dd7896ca83
commit
fd05b3f868
1 file changed
+1
-1
@@ -294,7 +294,7 @@ export function compileSessionBindings(
|
|||||||
const legacyToggleVisibleOverlayGlobal = (
|
const legacyToggleVisibleOverlayGlobal = (
|
||||||
input.rawConfig?.shortcuts as Record<string, unknown> | undefined
|
input.rawConfig?.shortcuts as Record<string, unknown> | undefined
|
||||||
)?.toggleVisibleOverlayGlobal;
|
)?.toggleVisibleOverlayGlobal;
|
||||||
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats.toggleKey ?? null;
|
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats?.toggleKey ?? null;
|
||||||
|
|
||||||
if (legacyToggleVisibleOverlayGlobal !== undefined) {
|
if (legacyToggleVisibleOverlayGlobal !== undefined) {
|
||||||
warnings.push({
|
warnings.push({
|
||||||
|
|||||||
Reference in new issue
Block a user