Skip to content

Commit bd2aec7

Browse files
committed
changes for issue #4491
1 parent a9113ac commit bd2aec7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/services/lookup.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@ class LookupService {
112112
* @return {Promise} Resolves to the review types.
113113
*/
114114
async getReviewTypes() {
115-
const res = await this.private.apiV5.get('/reviewTypes');
116-
const jsonResult = await res.json();
117-
return jsonResult;
115+
if (typeof this.private.tokenV3 !== 'undefined') {
116+
const res = await this.private.apiV5.get('/reviewTypes');
117+
const jsonResult = await res.json();
118+
return jsonResult;
119+
}
120+
return [];
118121
}
119122
}
120123

0 commit comments

Comments
 (0)