Skip to content

Commit d6dc220

Browse files
committed
share?
1 parent c21b2b7 commit d6dc220

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/static-webserver/client/source/class/osparc/editor/AnnotationNoteCreator.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
9797
} = e.getData();
9898

9999
const currentAccessRights = this.__study.getAccessRights();
100-
console.log("currentAccessRights", currentAccessRights);
101-
console.log("selectedGids", selectedGids);
102100
const proposeSharing = [];
103101
selectedGids.forEach(selectedGid => {
104102
if (!(parseInt(selectedGid) in currentAccessRights)) {
105103
proposeSharing.push(parseInt(selectedGid));
106104
}
107105
});
108-
console.log("share?", proposeSharing);
106+
if (proposeSharing.length) {
107+
console.log("share?", proposeSharing);
108+
}
109109

110110
if (selectedGids) {
111111
collaboratorsManager.close();
112-
this.__setRecipientGid(selectedGids[0]);
112+
this.__setRecipientGid(parseInt(selectedGids[0]));
113113
}
114114
}, this);
115115
}, this);

0 commit comments

Comments
 (0)