Skip to content

Commit

Permalink
docs: Fix references in README example (#8)
Browse files Browse the repository at this point in the history
* docs: Fix references in README example

* build job name
  • Loading branch information
johannesheesterman authored Nov 28, 2022
1 parent 7da96dd commit 07fb12d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
branches: [main]
jobs:
publish:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ configuratorContext.getConfigurationModels().then((models) => {
configuratorContext.newConfiguration(model.name).then((configuration) => {
console.log('newConfiguration', configuration);

configuratorContext.openConfiguration(configuration.id).then((openedConfiguration) => {
console.log('openedConfiguration', openedConfiguration);
configuratorContext.openConfiguration(configuration.id).then((configurator) => {
console.log('openedConfiguration', configurator);

const feature = openedConfiguration.steps[0].features[0];
const feature = configurator.steps[0].features[0];

configurator.updateRequirement(feature.id, true, 1).then((updateResult) => {
console.log('updateResult', updateResult);
Expand All @@ -59,7 +59,7 @@ configuratorContext.getConfigurationModels().then((models) => {
console.log('changeLanguage', updateResult);
});

configurator.getStepImage(openedConfiguration.steps[0].id).then((image) => {
configurator.getStepImage(configurator.steps[0].id).then((image) => {
console.log('image', image);
});

Expand Down

0 comments on commit 07fb12d

Please sign in to comment.