Skip to content

Commit

Permalink
Fix the missing google client id issue (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th authored Aug 11, 2023
1 parent e9abf41 commit 928c033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function BaseGoogleSearchConsoleSiteUrlFormGroup({ onValueChange, value }
}
}, [cache, organization?.hasGoogleOauth]);

return !!process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID && organization !== null ? (
return organization !== null ? (
<>
<Form.Group controlId="is-google-search-console-integration-enabled">
<Form.Check
Expand Down
10 changes: 6 additions & 4 deletions frontend/components/SiteForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ export function SiteForm() {
<Form.Control.Feedback type="invalid">{errors.safeQueryParameters}</Form.Control.Feedback>
</Form.Group>

<GoogleSearchConsoleSiteUrlFormGroup
onValueChange={(v) => updateValue("googleSearchConsoleSiteUrl", v)}
value={values.googleSearchConsoleSiteUrl}
/>
{!!process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID ? (
<GoogleSearchConsoleSiteUrlFormGroup
onValueChange={(v) => updateValue("googleSearchConsoleSiteUrl", v)}
value={values.googleSearchConsoleSiteUrl}
/>
) : null}

{getIsHosted() ? (
<Form.Group controlId="is-public">
Expand Down

0 comments on commit 928c033

Please sign in to comment.