Skip to content

Commit

Permalink
Samples: fixed bug with adding new linked sample/subsample
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicagood committed Aug 15, 2018
1 parent 088cbbc commit 73393c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/app/spot/samples/samples-tab.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
if (!vmParent.data.label) vmParent.data.label = createDefaultLabel(vmParent.data);
if (!vmParent.spot.properties.samples) vmParent.spot.properties.samples = [];
handleSampleNumber();
if (vm.modalTitle === 'Add a Subsample Spot') {
if (vm.modalTitle === 'Add a Field Sample/Subsample Spot' ||
vm.modalTitle === 'Add an Experimental Sample/Subsample Spot') {
createNewSpotWithSubsample().then(function (newSpotId) {
vmParent.spot.properties.samples.push({'spot_id': newSpotId});
vmParent.data = {};
Expand Down

0 comments on commit 73393c3

Please sign in to comment.