Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

fix #219 #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions app/modules/transcribe/subjects.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,9 @@ function SubjectsFactory($q, localStorageService, zooAPI, zooAPIProject) {
function getData(subjectSet) {
factory.loading = true;
_subjectSet = (subjectSet) ? subjectSet : null;

if (_subjectSet) {
_queue.length = 0;
return advanceQueue()
.then(_createSubject);
} else if (_data.current) {
return _createSubject();
} else {
return advanceQueue()
.then(_createSubject);
}
_queue.length = 0;
return advanceQueue()
.then(_createSubject);
}

function _createSubject() {
Expand Down