Skip to content

Commit

Permalink
Fixed handling of nullable value in Teleport component.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Aug 19, 2023
1 parent f078689 commit f5636f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/teleport.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports.name = 'Teleport';
exports.icon = 'ti ti-globe';
exports.author = 'Total.js';
exports.version = '2';
exports.version = '3';
exports.group = 'Common';
exports.config = { type: 'input', target: '', name: '', color: '#B9261A', is: false };

Expand Down Expand Up @@ -157,6 +157,10 @@
<body>
<ui-component name="watcher" path="CONFIG">
<script type="text/js">

if (!value)
return;

component.watcherbackup && component.unwatch(component.watcherbackup);
var defcolor = '#888';
var deftext = 'Not configured';
Expand Down

0 comments on commit f5636f4

Please sign in to comment.