Skip to content

Commit

Permalink
[blockly] Fix warning when show code button is clicked twice
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Feb 7, 2024
1 parent 93dce56 commit e5a09db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ export default {
this.$refs.blocklyEditor.showHideLabels(this.blocklyShowLabels)
},
showBlocklyCode () {
if (this.blocklyCodePreview) return

Check failure on line 419 in bundles/org.openhab.ui/web/src/pages/settings/rules/script/script-edit.vue

View workflow job for this annotation

GitHub Actions / checks

Trailing spaces not allowed
try {
this.currentModule.configuration.blockSource = this.$refs.blocklyEditor.getBlocks()
this.script = this.$refs.blocklyEditor.getCode()
Expand Down

0 comments on commit e5a09db

Please sign in to comment.