Jump to content

UI update on assetVersion.createComponent()


mitch.s

Recommended Posts

Yep

 

Maybe I need to mention that the sidebar was already open when I launched the command.

I had to reload (F5) a few times, open/close sidebar and clicked around. (I'm nervous by nature :) )

Thought it was some crappy browser problem but as I was able to reproduce the error I decided to notify you guys.

Link to comment
Share on other sites

  • 3 weeks later...

The component was created before the asset and assetversion were explicitly published with asset.publish().

 

Once an asset(version) has been explicitly published, there's no problem creating a component.

Also if you create components just after you created the asset/assetversion don't forget asset.publish().

Link to comment
Share on other sites

Use version.publish() instead of asset.publish(), since it is actually the version you publish.

 

asset.publish() is legacy and will succeed if used in the same scope (keeps a reference) as when the version was created, but could fail if called much later, since it would guess and publish the last created version.

 

Will make sure we update our examples to be clear on this.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...