Skip to content

Commit

Permalink
Don't show NaN values (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull committed Feb 12, 2020
1 parent 2dc6cb4 commit 7570c46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ export class ConfigService {
url: config.octoprint.url.split(':')[1].replace('//', ''),
port: parseInt(config.octoprint.url.split(':')[2].replace('/api/', ''), 10)
};
if (isNaN(config.octoprint.urlSplit.port)) {
config.octoprint.urlSplit.port = null;
}
return config;
}

Expand Down

0 comments on commit 7570c46

Please sign in to comment.