Skip to content

Commit

Permalink
Fix title for "Call Script" events when no script has been selected
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed May 30, 2024
1 parent 3005147 commit b1ffccb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix issue where Math Expression editor would incorrectly show spellcheck errors in function names
- Fix issue building game when Super GB Mode was enabled before setting Color Mode to "Color Only"
- Fix issue where using a plugin for a newer version of GB Studio would give an error saying the plugin was for an older version
- Fix title for "Call Script" events when no script has been selected

## [4.0.0-beta2]

Expand Down
5 changes: 4 additions & 1 deletion src/lib/events/eventCallCustomEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ const l10n = require("../helpers/l10n").default;
const id = "EVENT_CALL_CUSTOM_EVENT";
const groups = ["EVENT_GROUP_CONTROL_FLOW"];

const autoLabel = (fetchArg) => {
const autoLabel = (fetchArg, input) => {
if (input.customEventId === undefined) {
return l10n("EVENT_CALL_CUSTOM_EVENT");
}
return l10n("EVENT_CALL_CUSTOM_EVENT_LABEL", {
script: fetchArg("customEventId"),
});
Expand Down

0 comments on commit b1ffccb

Please sign in to comment.