diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-06-14 09:05:47 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-06-14 09:09:38 +0200 |
| commit | f911831563169c2e51ae409e110f534c9db54e4c (patch) | |
| tree | ab25911df36e8b3bab152c828e55935f90f2cb9f /js/mock.js | |
| parent | 279b90dfb86b821a647b3c6b487a351e49de8f14 (diff) | |
| download | bycs-sol-f911831563169c2e51ae409e110f534c9db54e4c.tar.gz bycs-sol-f911831563169c2e51ae409e110f534c9db54e4c.zip | |
mock: create new graduation if needed
Diffstat (limited to 'js/mock.js')
| -rw-r--r-- | js/mock.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -69,7 +69,11 @@ function fetchGraduationMock(s) { } function submitGraduationChangeMock(s, c) { - s.graduation.addChange(c); + if (s.graduation) { + s.graduation.addChange(c); + } else { + s.graduation = Graduation.from(s, [c]); + } } export { |
