Add defaults for values not in switch

This commit is contained in:
Westly Wright 2018-09-17 17:32:57 -07:00
parent 59ce6f88a3
commit e99e342f0e
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ export default Component.extend({
max = parseSi(get(currentProjectLimit, key)) / (1024 ** 3);
break;
default:
value = parseInt(value, 10);
usedValue = parseInt(( get(used, key) || 0 ), 10);
max = parseInt(get(currentProjectLimit, key), 10);
break;
}