Skip to content

Commit

Permalink
Fix search by ayah specific surah filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ngekoding committed Dec 2, 2024
1 parent 9a2675e commit 1c23180
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pages/quran/QuranSearchByAyah.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ import QuranSearchResultSkeleton from "./skeletons/QuranSearchResultSkeleton.vue
import AyahOptionsDialog from "src/components/AyahOptionsDialog.vue";
import ToTop from "src/components/ToTop.vue";
import PageScrollPositionHandler from "src/components/PageScrollPositionHandler.vue";
import surahList from "src/data/surah-list";
import { surahList, getFilteredSurahList } from "src/data/surah-list";
import latinAlternatives from "src/data/latin-alternatives";
export default {
Expand Down Expand Up @@ -392,10 +392,7 @@ export default {
},
filterSpecificSurahOptions(val, update) {
update(() => {
const q = val.toLowerCase();
this.specificSurahOptions = surahList.filter(item => {
return item.nameSimple.toLowerCase().includes(q);
});
this.specificSurahOptions = getFilteredSurahList(val);
});
},
saveLastKeyword() {
Expand Down

0 comments on commit 1c23180

Please sign in to comment.