Skip to content

Commit

Permalink
fix: saving configuration fails when there is no tank data in signalk (
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Aug 10, 2018
1 parent 3939f57 commit 1d57b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversions/tanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = (app, plugin) => {
})
}

return {
return tankPaths.length == 0 ? undefined : {
tanks: {
title: 'Tank Mapping',
type: 'array',
Expand Down

0 comments on commit 1d57b6e

Please sign in to comment.