Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bug: CollectionCreate form does not display error message when collection creation fails

オープン
#3,948 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

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

@pranjal270 がすでに取り組んでいます。

2026年3月10日 から。

評価

この issue はまだ評価されていません。

説明

Bug
p5.js version

No response

What is your operating system?

Windows

Web browser and version

chrome://145.0.7632.117

Actual Behavior

In the collection creation form, the error handling logic for creating a new sketch collection is incomplete. The local state creationError is defined but never updated when the createCollection action fails.

When collection creation fails (e.g., due to a network error or backend validation failure), no error message is shown to the user because creationError remains undefined. The createCollection action dispatches an ERROR action on failure, but the component neither listens to this state nor catches the error.

Expected Behavior

The component should display an appropriate error message when collection creation fails.

This can be achieved either by:

  • reading the error state from Redux, or

  • modifying the action to return a rejected Promise so the component can catch it and set its local creationError state to true.

Steps to reproduce

###Steps:

  1. Navigate to the Collection Creation page.
  2. Intercept the network request to the /collections endpoint and force it to fail (for example, return a 500 error).
  3. Attempt to create a collection.
  4. Observe that no error message is displayed despite the failure.
Snippet:
// TODO: error is never set!
// eslint-disable-next-line no-unused-vars
const [creationError, setCreationError] = useState();
主要言語
JavaScript
スター
1.7k
フォーク
1.7k
平均マージ
3日 7時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

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

processing/p5.js-web-editor のほかの issue

processing/p5.js-web-editor の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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