mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: split api into api, api-cli & api-plugin
This commit is contained in:
@@ -120,7 +120,7 @@ export class CatalogComponent implements OnInit, OnDestroy {
|
||||
this.availableSemesters = semesters
|
||||
.slice(Math.max(0, currentSemesterIndex - 1), Math.min(currentSemesterIndex + 2, semesters.length))
|
||||
.reverse();
|
||||
if (typeof this.activeSemester !== 'undefined') {
|
||||
if (this.activeSemester !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any, unicorn/no-thenable */
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
import {Client} from '@openstapps/api/lib/client';
|
||||
import {Client} from '@openstapps/api';
|
||||
import {
|
||||
SCDish,
|
||||
SCMessage,
|
||||
|
||||
@@ -132,9 +132,7 @@ export class DaiaDataProvider {
|
||||
signature: label,
|
||||
status: holdingStatus,
|
||||
dueDate: dueDate,
|
||||
online:
|
||||
Array.isArray(available) &&
|
||||
available.find(item => item.service === 'remote') !== undefined,
|
||||
online: Array.isArray(available) && available.some(item => item.service === 'remote'),
|
||||
available:
|
||||
(Array.isArray(available) &&
|
||||
available.find(item =>
|
||||
|
||||
Reference in New Issue
Block a user