Skip to content

Commit

Permalink
Default values for corrupted JSON file(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdaSeremet committed Jul 20, 2020
1 parent 02c1f0d commit 162e850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ const initData = () => {
ioData.pinOrder = [];
}
if(!ioData.pinStates) {
ioData.pinOrder = {};
ioData.pinStates = {};
}
for(const [key, value] of Object.entries(ioData.controllable_pins)) {
if(!availablePins.includes(key)) {
Expand Down

0 comments on commit 162e850

Please sign in to comment.