Skip to content

Update 3d-scene.js - #2

Open
iamsebastian wants to merge 1 commit into
willviles:masterfrom
iamsebastian:patch-2
Open

Update 3d-scene.js#2
iamsebastian wants to merge 1 commit into
willviles:masterfrom
iamsebastian:patch-2

Conversation

@iamsebastian

Copy link
Copy Markdown
Contributor

Could not render scene/component without added interactions.

Could not render scene/component without added interactions.

@willviles willviles left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @iamsebastian. Just one review and then good to merge!

let typeArr = get(this, `config.${type}`);

if (!typeArr || !(Array.isArray(typeArr))) {
console.info(`No instantiate of "${type}", due to not added objects of this type`);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can allow this to return silently - no need for console.info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants