Skip to content

Commit 497f03a

Browse files
committed
fix(FilterPanl): remove condition of tag array length
1 parent dc438e5 commit 497f03a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/Panel/Item/FilterPanel.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@
350350
* Validating part for the favorite input
351351
*/
352352
async validateBeforeSubmit() {
353-
if (this.confirmedTags.length !== 0) {
354353
const tags_id: number[] = this.confirmedTags.map(tag => tag.tag_id);
355354
const title: string | undefined = this.$accessor.exercises.search_criterion.title;
356355
@@ -369,11 +368,8 @@
369368
this.createFavoriteInput = false;
370369
this.$displaySuccess("Votre favori a bien été créé.");
371370
} catch (e) {
372-
this.$displayError("Vos favoris n'ont pas pu être chargé");
371+
this.$displayError('Un problème est survenu lors de la création du favori.');
373372
}
374-
} else {
375-
this.$displayWarning('Un problème est survenu lors de la création du favori.')
376-
}
377373
}
378374
379375
/**

0 commit comments

Comments
 (0)