Skip to content
Snippets Groups Projects
Commit fcbaf1c6 authored by Santiago González's avatar Santiago González
Browse files

minor changes

parent 554c27ba
No related branches found
No related tags found
No related merge requests found
Pipeline #3633 failed with stages
in 29 seconds
......@@ -4,7 +4,7 @@ import { CourseState } from "./CourseState";
import { FAQState } from "./FAQState";
import { UpdateState } from "./UpdateState";
configure({ enforceActions: true });
configure({ enforceActions: "observed" });
@action
export class Store {
......
......@@ -15,16 +15,12 @@ export class Course extends BaseModel {
const object = new Course();
assign(object, super.fromJSON(json));
const imageURL = `https://open.fing.edu.uy/Images/iconCourse/${
json.code
}_image`;
if (!isNil(json.classes)) {
if (!isNil(json.classes))
assign(object, {
classes: CourseClass.arrayFromJSON(json.classes, object),
iconURLs: this.getIconURLsFromCode(json.code)
});
}
return object;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment