Skip to content

Commit

Permalink
Merge pull request #486 from ripe-tech/ns/419-use_initialsConfig
Browse files Browse the repository at this point in the history
#419 Use `initialsConfig()` in CSR
  • Loading branch information
NFSS10 authored Feb 23, 2023
2 parents e1d71b6 + c6397d3 commit 63df064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Reuse Draco loader instance - [#481](https://github.com/ripe-tech/ripe-sdk/issues/481)
* Removed `draco_decoder.js` dependency - [#481](https://github.com/ripe-tech/ripe-sdk/issues/481)
* Use `initialsConfig()` in CSR - [#479](https://github.com/ripe-tech/ripe-sdk/issues/479)

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions src/js/visual/configurator-csr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,8 +1696,8 @@ ripe.ConfiguratorCsr.prototype._onPreConfig = function(self) {
*/
ripe.ConfiguratorCsr.prototype._onPostConfig = async function(self, config) {
const _postConfig = async () => {
// gets the initials and initials.csr set from the config
const initialsConfig = await this.owner.getInitialsConfigP();
// gets the initials configuration from the config
const initialsConfig = this.owner.initialsConfig(config);

// gets the 3d set from the config
const config3d = config["3d"] || {};
Expand Down

0 comments on commit 63df064

Please sign in to comment.