Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Module Selector Console Error #1543

Merged
merged 9 commits into from
Sep 14, 2021
5 changes: 1 addition & 4 deletions examples/lib/defaultHtmlSequencerUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
// look up needed steps from Url Hash:
function importStepsFromUrlHash() {
var hash = urlHash.getUrlHashParameter('steps');

if (hash) {
_sequencer.importString(hash);
_sequencer.run({ index: 0 });
Expand All @@ -27,9 +26,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {

function selectNewStepUi() {
var m = $(addStepSel + ' select').val();
//if so that whenever the module dropdown is empty it will not show error it will take first value.
if(!m) m = arguments[0];
else $(addStepSel + ' .info').html(_sequencer.modulesInfo(m).description);
if(m) $(addStepSel + ' .info').html(_sequencer.modulesInfo(m).description);
$(addStepSel + ' #add-step-btn').prop('disabled', false);
}

Expand Down