Skip to content

Commit

Permalink
Update field_variable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMan13 authored Nov 25, 2023
1 parent 6ea0767 commit 10bfbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/field_variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Blockly.FieldVariable.prototype.typeIsAllowed_ = function(type) {
Blockly.FieldVariable.prototype.getVariableTypes_ = function() {
// TODO (#1513): Try to avoid calling this every time the field is edited.
var variableTypes = this.variableTypes;
if (variableTypes === null) {
if (!variableTypes) {
// If variableTypes is null, return all variable types.
if (this.sourceBlock_) {
var workspace = this.sourceBlock_.workspace;
Expand Down

0 comments on commit 10bfbe9

Please sign in to comment.