Skip to content

Commit

Permalink
fix: Remove 'null' text when no compilation is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed May 4, 2022
1 parent e4935b7 commit 9911575
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/blockly/overrides/compilation_selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ export class CompilationSelection extends (Blockly.FieldDropdown as any) {
super(Blockly.Field.SKIP_SETUP);
}

/**
* @override
*/
doClassValidation_(opt_newValue: any) {
return /** @type {string} */ opt_newValue;
}

getOptions() {
return (this.generatedOptions_ = this.dropdownCreate());
}
Expand Down
1 change: 0 additions & 1 deletion src/components/blockly/overrides/field_variable_setter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export class FieldVariableSetter extends (Blockly.FieldVariable as any) {
const name = this.getText();

const options = [];
console.error(Blockly);
options.push([Blockly.Msg['RENAME_VARIABLE'], Blockly.RENAME_VARIABLE_ID]);
options.push([Blockly.Msg['NEW_VARIABLE'], 'NEW_VARIABLE']);
if (Blockly.Msg['DELETE_VARIABLE']) {
Expand Down

0 comments on commit 9911575

Please sign in to comment.