Browse Source

fix: remove `|| true` debug leftover from hasExternalProviders

The `|| true` was forcing external providers to always appear
available, bypassing the actual API key check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
247cd17829
  1. 2
      src/components/nodes/ControlPanel.tsx

2
src/components/nodes/ControlPanel.tsx

@ -379,7 +379,7 @@ function GenerateImageControls({ node }: { node: Node }) {
const supportsResolution = currentModelId === "nano-banana-pro" || currentModelId === "nano-banana-2";
const aspectRatios = currentModelId === "nano-banana-2" ? EXTENDED_ASPECT_RATIOS : BASE_ASPECT_RATIOS;
const resolutions = currentModelId === "nano-banana-2" ? RESOLUTIONS_NB2 : RESOLUTIONS_PRO;
const hasExternalProviders = !!(replicateEnabled && replicateApiKey) || true;
const hasExternalProviders = !!(replicateEnabled && replicateApiKey);
return (
<>

Loading…
Cancel
Save