Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

fix: vm creation window collapses #1375

Merged
merged 6 commits into from
Nov 7, 2018

Conversation

HeyRoach
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 26, 2018

Pull Request Test Coverage Report for Build 1291

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.009%) to 53.585%

Totals Coverage Status
Change from base Build 1289: -0.009%
Covered Lines: 8102
Relevant Lines: 13276

💛 - Coveralls

@@ -280,11 +280,11 @@ export const getComputeOfferingForVmEditing = createSelector(
const cpuNumber =
account && account.cpuavailable === 'Unlimited'
? account.cpuavailable
: Number(account.cpuavailable) + cpuNumberUsed;
: Number(account.cpuavailable) + cpuNumberUsed || '0';
Copy link
Collaborator

@wowshakhov wowshakhov Oct 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why '0'? Can we use 0 in code and then convert to whatever representation we need in the end?
  2. I suggest that we do this calculation in a separate function, because it is rather complex and is the same for cpu and memory

@wowshakhov wowshakhov merged commit 7469c4f into bwsw:master Nov 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants