Skip to content

Commit

Permalink
Updated artifact descriptors to provide type info. Fixes #942
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Dec 23, 2016
1 parent 4da87b5 commit 62db7c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/visualizers/panels/ArtifactIndex/ArtifactIndexControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ define([
// This next function retrieves the relevant node information for the widget
ArtifactIndexControl.prototype._getObjectDescriptor = function (nodeId) {
var node = this._client.getNode(nodeId),
base,
type,
hash,
objDescriptor;

if (node) {
base = this._client.getNode(node.getBaseId());
type = this._client.getNode(node.getMetaTypeId());
hash = node.getAttribute('data');
objDescriptor = {
id: node.getId(),
type: base ? base.getAttribute('name') : 'n/a',
type: type ? type.getAttribute('name') : 'n/a',
name: node.getAttribute('name'),
createdAt: node.getAttribute('createdAt'),
dataURL: this.blobClient.getDownloadURL(hash),
Expand Down

0 comments on commit 62db7c0

Please sign in to comment.