Skip to content

Commit

Permalink
Fix double node-adding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonboiser committed Nov 22, 2017
1 parent 2209afd commit a5c0ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@
} else {
if (this.nodeCompletesParent(node)) {
promise = this.addNodeForTransfer(sanitizeNode(this.annotatedTopicNode));
} else {
promise = this.addNodeForTransfer(sanitized);
}
promise = this.addNodeForTransfer(sanitized);
}
return promise.then(() => {
this.disableAll = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</section>

<section
v-if="channelOnDevice.version"
v-if="channelOnDevice.on_device_resources > 0"
class="updates"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const CheckboxTypes = {
const isAncestorOf = (a, b) => find(b.path, { pk: a.pk });
const isDescedantOf = flip(isAncestorOf);
const sumTotalResources = sumBy('total_resources');
// TODO name change!!!
const sumOnDeviceResources = sumBy('on_device_resources');

/**
Expand All @@ -41,7 +40,6 @@ const sumOnDeviceResources = sumBy('on_device_resources');
*
*/
export function annotateNode(node, selectedNodes) {
// TODO needs to be renamed!!!
const { on_device_resources, total_resources } = node;
const isIncluded = find(selectedNodes.included, { pk: node.pk });
const isOmitted = find(selectedNodes.omitted, { pk: node.pk });
Expand Down

0 comments on commit a5c0ac8

Please sign in to comment.