Skip to content

Commit

Permalink
Merge pull request #928 from webgme/issue/919_delete_ptr
Browse files Browse the repository at this point in the history
Closes #919 Make sure to remove ptr completely if no items left or empty.
  • Loading branch information
kecso committed Apr 10, 2016
2 parents 660ad97 + af0f3e2 commit 1a1ce9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/js/Panels/MetaEditor/MetaEditorControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ define(['js/logger',
if (sourceNode && targetNode) {
this._client.removeValidTargetItem(sourceID, pointerName, targetID);
pointerMetaDescriptor = this._client.getValidTargetItems(sourceID, pointerName);
if (pointerMetaDescriptor && pointerMetaDescriptor.length === 0) {
if (!pointerMetaDescriptor || pointerMetaDescriptor.length === 0) {
if (isSet === false) {
//single pointer
this._client.deleteMetaPointer(sourceID, pointerName);
Expand Down

0 comments on commit 1a1ce9e

Please sign in to comment.