Skip to content

Commit

Permalink
fixed fuxa server parseValue of boolean #976
Browse files Browse the repository at this point in the history
  • Loading branch information
unocelli committed Nov 21, 2023
1 parent a3ee603 commit 9e6c9ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
</div>
</div>
</app-root>
<script src="runtime.8ef63094e52a66ba.js" type="module"></script><script src="polyfills.2696a6f9dc75535e.js" type="module"></script><script src="scripts.1c3385254ff4c93c.js" defer></script><script src="main.6701009e63a384bb.js" type="module"></script>
<script src="runtime.8ef63094e52a66ba.js" type="module"></script><script src="polyfills.2696a6f9dc75535e.js" type="module"></script><script src="scripts.1c3385254ff4c93c.js" defer></script><script src="main.10eabaf0c2828d35.js" type="module"></script>

</body></html>

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuxa",
"version": "1.1.15-1363",
"version": "1.1.15-1365",
"keywords": [],
"author": "frangoteam <[email protected]>",
"description": "Web-based Process Visualization (SCADA/HMI/Dashboard) software",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuxa-server",
"version": "1.1.15-1363",
"version": "1.1.15-1365",
"description": "Web-based Process Visualization (SCADA/HMI/Dashboard) software",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions server/runtime/devices/fuxaserver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ function FuxaServer(_data, _logger, _events) {
if (type === 'number') {
return parseFloat(value);
} else if (type === 'boolean') {
if (typeof value === 'string') {
return value.toLowerCase() !== 'false';
}
return Boolean(value);
} else if (type === 'string') {
return value;
Expand Down

0 comments on commit 9e6c9ad

Please sign in to comment.