diff --git a/app/Services/VocabularyService.php b/app/Services/VocabularyService.php index dc7ff28f..bb7cf4c3 100644 --- a/app/Services/VocabularyService.php +++ b/app/Services/VocabularyService.php @@ -255,7 +255,7 @@ public function getExampleSentence($userId, $targetType, $targetId) { ->first(); if (!$exampleSentence) { - throw new \Exception('Example sentence does not exist, or it belongs to a different user.'); + return null; } $textBlock = new TextBlockService(); diff --git a/resources/js/components/Home/Home.vue b/resources/js/components/Home/Home.vue index e48c1951..1655cdf5 100644 --- a/resources/js/components/Home/Home.vue +++ b/resources/js/components/Home/Home.vue @@ -83,7 +83,7 @@ Version - The current LinguaCafe version is v0.13. + The current LinguaCafe version is v0.13.3 diff --git a/resources/js/components/Home/PatchNotes.vue b/resources/js/components/Home/PatchNotes.vue index d5147a7d..0c768aed 100644 --- a/resources/js/components/Home/PatchNotes.vue +++ b/resources/js/components/Home/PatchNotes.vue @@ -4,6 +4,36 @@ Patch notes + + v0.13.3 2024.09.02. + + Bug fixes: +
    +
  • Fixed a bug on the review page that prevented reviewing words and phrases that had no example sentences.
  • +
+
+
+ + + v0.13.2 2024.08.30. + + Bug fixes: +
    +
  • Fixed website import.
  • +
+
+
+ + + v0.13.1 2024.08.29. + + Bug fixes: +
    +
  • Turkish temporary fix.
  • +
+
+
+ v0.13 2024.06.24. diff --git a/resources/js/components/Review/Review.vue b/resources/js/components/Review/Review.vue index 1ad1d2f0..d6ac0dba 100644 --- a/resources/js/components/Review/Review.vue +++ b/resources/js/components/Review/Review.vue @@ -534,7 +534,7 @@ '《', '》','【', '】', '『', '』', '〔', '〕', '[', ']', '・', '?', '(', ')', ' ', ' NEWLINE ', '.', '%', '-', '«', '»', "'", '’', '–', 'NEWLINE']; - if (this.settings.reviewSentenceMode === 'disabled') { + if (this.settings.reviewSentenceMode === 'disabled' || this.exampleSentence === null) { if (this.reviews[this.currentReviewIndex].type == 'word') { this.readWords ++; } else { @@ -662,7 +662,7 @@ this.exampleSentence = null; axios.get('/vocabulary/example-sentence/' + this.reviews[this.currentReviewIndex].type + '/' + this.reviews[this.currentReviewIndex].id).then((response) => { - if (response.data !== 'no example sentence') { + if (response.data.words !== undefined) { this.exampleSentence = { id: 0, words: response.data.words,