Skip to content

"TypeError: Cannot read property 'concat' of null" when loading /new-project directly #2591

@maxceem

Description

@maxceem

When we navigate http://local.topcoder-dev.com:3000/new-project/ (https://connect.topcoder-dev.com/new-project) directly, there is an error in browser console:

TypeError: Cannot read property 'concat' of null
    at ProxyComponent.componentWillReceiveProps (CreateContainer.jsx?9480:93)
    at eval (ReactCompositeComponent.js?063f:608)
    at measureLifeCyclePerf (ReactCompositeComponent.js?063f:73)
    at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js?063f:607)
    at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js?063f:544)
    at Object.receiveComponent (ReactReconciler.js?c56c:122)
    at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js?063f:751)
    at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js?063f:721)
    at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js?063f:642)
    at ReactCompositeComponentWrapper.performUpdateIfNecessary (ReactCompositeComponent.js?063f:558)

Visually nothing is broken and keeps working.

It happens on this line https://github.com/appirio-tech/connect-app/blob/dev/src/projects/create/containers/CreateContainer.jsx#L93

We have to check what is the reason for this error:

  • is it enough just to check if projectTemplates is not null
  • or there is something wrong with workflow, and we have to make sure that projectTemplates are loaded at this moment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions