Skip to content

Commit

Permalink
Correct frontend errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter-richardson committed Jun 23, 2024
1 parent 8458da2 commit 1d63fae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/facies/inflectere.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
filter: (verbum: Hoc, colamen: string) => boolean
}[];
const agendum: Faciendum<Hoc> = eventus.value?.referendum;
const agendum: Faciendum<Hoc> = eventus?.referendum;

Check failure on line 18 in src/facies/inflectere.vue

View workflow job for this annotation

GitHub Actions / aedificare

Cannot find name 'eventus'. Did you mean 'event'?
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const tabula: Tabula<Hoc> | null = agendum?.putetur() ?? null;
const categoria: string = eventus.value?.categoria ?? '';
const categoria: string = eventus?.categoria ?? '';

Check failure on line 22 in src/facies/inflectere.vue

View workflow job for this annotation

GitHub Actions / aedificare

Cannot find name 'eventus'. Did you mean 'event'?
const anglica: boolean = Cocutor.se.ipse().edatur('lingua') === 'anglica';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down Expand Up @@ -134,9 +134,9 @@
return await new Promise(() => this.onerans = !!omnia);
}, async numeramen (numeramen: Hoc): Promise<void> {
if (this.figura === 'numeramenAgendum' &&
this.agendum instanceof Agenda.NumeramenAgendum &&
agendum instanceof Agenda.NumeramenAgendum &&
numeramen instanceof Numeramen) {
const referendum: Referendum = (this.agendum as Agenda.NumeramenAgendum).referatur(numeramen.referendum);
const referendum: Referendum = (agendum as Agenda.NumeramenAgendum).referatur(numeramen.referendum);
if (referendum instanceof Numerus) {
this.verbum = referendum as Numerus;
} else if (referendum instanceof Agenda.NomenAgendum) {
Expand Down Expand Up @@ -167,36 +167,36 @@
let referendum: Referendum | null = null;
switch (this.figura) {
case 'actusAgendus':
if (this.agendum instanceof Agenda.ActusAgendus) {
if (agendum instanceof Agenda.ActusAgendus) {
switch (eventus.referendum) {
case 'frequentativus':
referendum = (this.agendum as Agenda.ActusAgendus).frequentativus();
referendum = (agendum as Agenda.ActusAgendus).frequentativus();
break;
case 'nomen':
referendum = (this.agendum as Agenda.ActusAgendus).nomen();
referendum = (agendum as Agenda.ActusAgendus).nomen();
break;
case 'actor':
referendum = (this.agendum as Agenda.ActusAgendus).actor(eventus.genus ?? '');
referendum = (agendum as Agenda.ActusAgendus).actor(eventus.genus ?? '');
break;
}
}
break;
case 'nomenActum':
if (this.agendum instanceof Agenda.NomenActum) {
referendum = (this.agendum as Agenda.NomenActum).actus();
if (agendum instanceof Agenda.NomenActum) {
referendum = (agendum as Agenda.NomenActum).actus();
}
break;
case 'adiectivumAgendum':
if (this.agendum instanceof Agenda.AdiectivumAgendum) {
referendum = (this.agendum as Agenda.AdiectivumAgendum).probetur({
if (agendum instanceof Agenda.AdiectivumAgendum) {
referendum = (agendum as Agenda.AdiectivumAgendum).probetur({
gradus: eventus.gradus ?? '',
genus: eventus.genus ?? ''
});
}
break;
case 'incomparabile':
if (this.agendum instanceof Agenda.Incomparabile) {
referendum = (this.agendum as Agenda.Incomparabile).probetur(eventus.genus ?? '');
if (agendum instanceof Agenda.Incomparabile) {
referendum = (agendum as Agenda.Incomparabile).probetur(eventus.genus ?? '');
}
break;
}
Expand Down
6 changes: 3 additions & 3 deletions src/facies/specere.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
locutor.addatur(this.verbum);
}
}, addeProprium (): void {
if ([ this.verbum, this.propriabile ].all()) {
if (this.verbum && this.propriabile) {
this.verbum.scriptum = this.verbum.scriptum.capitalize();
}
Expand All @@ -90,8 +90,8 @@
this.propriabile = [
this.multiplex, [
'nomen', 'adiectivum'
].includes(verbum?.categoria),
!verbum?.scriptum.isCapitalized()
].includes(this.verbum?.categoria ?? ''),
!this.verbum?.scriptum.isCapitalized()
].all();
}
});
Expand Down

0 comments on commit 1d63fae

Please sign in to comment.