web: address #1671 review nit — simplify redundant autoOpen guard
DeepLink.autoOpen is a non-optional boolean, so the `?? false` was dead once openApp was truthy. Collapse to Boolean(deepLink?.openApp && deepLink.autoOpen) — still false when there's no deep link, still gated on openApp so a malformed autoOpen-without-openApp link can't fire. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
This commit is contained in:
parent
cbb2afe80c
commit
b8cd4fd431
1 changed files with 1 additions and 3 deletions
|
|
@ -1190,9 +1190,7 @@ export function InspectorView({
|
|||
onOpenApp={onOpenApp}
|
||||
onCloseApp={onCloseApp}
|
||||
onError={onAppError}
|
||||
autoOpen={
|
||||
Boolean(deepLink?.openApp) && (deepLink?.autoOpen ?? false)
|
||||
}
|
||||
autoOpen={Boolean(deepLink?.openApp && deepLink.autoOpen)}
|
||||
/>
|
||||
</ScreenStage>
|
||||
<ScreenStage active={activeTab === "Prompts"}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue