Skip to content

Commit

Permalink
WIP #1035 Added backwards compat with operation color
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Sep 8, 2017
1 parent d12ab2a commit 75e89f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/viz/PipelineControl.js
Expand Up @@ -104,7 +104,8 @@ define([
}

// Handle the display color
desc.displayColor = desc.attributes[CONSTANTS.DISPLAY_COLOR].value;
desc.displayColor = desc.attributes[CONSTANTS.DISPLAY_COLOR] ?
desc.attributes[CONSTANTS.DISPLAY_COLOR].value : '#78909c';
delete desc.attributes[CONSTANTS.DISPLAY_COLOR];

} else if (desc.isConnection) {
Expand Down
Expand Up @@ -155,7 +155,8 @@ define([
// Remove DeepForge hidden attributes
delete desc.attributes.code;
delete desc.attributes[CONSTANTS.LINE_OFFSET];
desc.displayColor = desc.attributes[CONSTANTS.DISPLAY_COLOR].value;
desc.displayColor = desc.attributes[CONSTANTS.DISPLAY_COLOR] ?
desc.attributes[CONSTANTS.DISPLAY_COLOR].value : '#78909c';
delete desc.attributes[CONSTANTS.DISPLAY_COLOR];
}

Expand Down

0 comments on commit 75e89f1

Please sign in to comment.