Skip to content

Commit

Permalink
Merge pull request #243 from utybo/fix-242
Browse files Browse the repository at this point in the history
fix: use debug instead of console.error for useDocsPreferredVersion
  • Loading branch information
weareoutman authored Jul 23, 2022
2 parents f435c2c + 56f5ab5 commit 1cc0f12
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export default function SearchBar({
} catch (e: unknown) {
if (indexDocs) {
if (e instanceof ReactContextError) {
console.error("useDocsPreferredVersion", e);
/* ignore, happens when website doesn't use versions */
} else {
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function SearchPageContent(): React.ReactElement {
} catch (e: unknown) {
if (indexDocs) {
if (e instanceof ReactContextError) {
console.error("useDocsPreferredVersion", e);
/* ignore, happens when website doesn't use versions */
} else {
throw e;
Expand Down

0 comments on commit 1cc0f12

Please sign in to comment.