Skip to content

PropTypes errors on CollectionList #2351

Closed
@lindapaiste

Description

@lindapaiste

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

Adding a sketch to a collection works just fine, this is only a code-quality issue.

I'm seeing two prop-types validation errors on the CollectionList modal:

checkPropTypes.js:20 Warning: Failed prop type: The prop projectId is marked as required in CollectionList, but its value is null.
in CollectionList (created by Connect(CollectionList))

checkPropTypes.js:20 Warning: Failed prop type: The prop collections[0].items[0].project.createdAt is marked as required in CollectionList, but its value is undefined.
in CollectionList (created by Connect(CollectionList))

image

Expected Behavior

It should not have errors.

Steps to reproduce

Steps:

  1. Open a sketch
  2. Click "File" menu
  3. Click "Add to Collection"

Metadata

Metadata

Assignees

Labels

Area: Code QualityFor refactoring, cleanup, or improvements to maintainabilityBugError or unexpected behaviorsPriority:MediumModerately important, should be completed in a fair timeframe

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions