[BUG]: SocialShareButton logs unconditional console.warn when script is not loaded

オープン 初心者向け
#461 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vivekrajputofficial29-afk がすでに取り組んでいます。

2026年11月19日 から。

  • #470 @vivekrajputofficial29-afk による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
89/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, react

調査の方向性

まず、src/components/SocialShareButton.jsx の57~59行あたりにある useEffect から始め、既存の debug prop がどのように使われているか確認します。説明に従って警告を条件付きにするか削除し、debug が false のときに警告が抑制され、true のときに表示されることを確認します。通常のナビゲーションで警告がログに記録されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug enhancement
Bug Description
Bug Description

In src/components/SocialShareButton.jsx, an else branch in useEffect logs console.warn('SocialShareButton widget not loaded') on every render where window.SocialShareButton is undefined.

Since the component already accepts a debug prop (defaulting to false), this warning clutters developer and browser console logs during normal runtime and testing environments.

Steps to Reproduce
  1. Open OrgExplorer with browser DevTools / Console open.
  2. Navigate across pages (such as /overview).
  3. Notice SocialShareButton widget not loaded warning in the console.
Location
  • File: src/components/SocialShareButton.jsx
  • Line: 57–59
Proposed Solution

Gate the warning behind the existing debug prop, or remove it so it does not log in normal production/development runs:

} else if (debug) {
  console.warn('SocialShareButton widget not loaded');
}
Impact

Low - Minor inconvenience / Dev ergonomics

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Steps to Reproduce

No response

Logs and Screenshots

No response

Environment Details

No response

Impact

Critical - Application is unusable

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
JavaScript
スター
53
フォーク
182
平均マージ
18分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。