Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pghorpade committed Aug 2, 2024
1 parent 526084f commit ebd6d72
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
6 changes: 4 additions & 2 deletions pages/collections/access/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ function getSearchData(data) {
<DividerWayFinder class="search-margin" />
</SectionWrapper>
<SectionWrapper v-show="page && page.accessCollections && hits.length == 0 && !noResultsFound
">
<SectionWrapper
v-show="page && page.accessCollections && hits.length == 0 && !noResultsFound
"
>
<SectionCardsWithIllustrations
class="section"
:items="parsedAccessCollections"
Expand Down
18 changes: 9 additions & 9 deletions pages/give/endowments/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ const searchGenericQuery = ref({
watch(() =>
route.query,
(newVal, oldVal) => {
// console.log('ES newVal, oldVal', newVal, oldVal)
searchGenericQuery.value.queryText = route.query.q || ''
searchGenericQuery.value.queryFilters = parseFilters(route.query.filters || '')
searchES()
}, { deep: true, immediate: true }
(newVal, oldVal) => {
// console.log('ES newVal, oldVal', newVal, oldVal)
searchGenericQuery.value.queryText = route.query.q || ''
searchGenericQuery.value.queryFilters = parseFilters(route.query.filters || '')
searchES()
}, { deep: true, immediate: true }
)
async function searchES() {
Expand Down Expand Up @@ -276,7 +276,7 @@ onMounted(async () => {
parsedFeaturedEndowments.length &&
hits.length == 0 &&
!noResultsFound
"
"
class="section-no-top-margin"
:section-title="page.featuredEndowments[0].titleGeneral"
:section-summary="page.featuredEndowments[0].sectionSummary"
Expand All @@ -294,7 +294,7 @@ onMounted(async () => {
parsedFeaturedEndowments.length &&
hits.length == 0 &&
!noResultsFound
"
"
theme="divider"
>
<DividerWayFinder color="about" />
Expand All @@ -306,7 +306,7 @@ onMounted(async () => {
parsedEndowmentsList.length &&
hits.length == 0 &&
!noResultsFound
"
"
section-title="All Collection Endowments"
>
<SectionGenericList :items="parsedEndowmentsList" />
Expand Down
24 changes: 12 additions & 12 deletions pages/help/services-resources/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ onMounted(() => {
<BannerText
v-if="
!page.serviceOrResource.heroImage ||
page.serviceOrResource.heroImage.length == 0 ||
!page.serviceOrResource.heroImage[0].image ||
page.serviceOrResource.heroImage[0].image.length == 0
page.serviceOrResource.heroImage.length == 0 ||
!page.serviceOrResource.heroImage[0].image ||
page.serviceOrResource.heroImage[0].image.length == 0
"
class="banner-text"
:category="page.serviceOrResource.type"
Expand All @@ -205,9 +205,9 @@ onMounted(() => {
<SectionWrapper
v-if="
page.serviceOrResource.heroImage &&
page.serviceOrResource.heroImage.length == 1 &&
page.serviceOrResource.heroImage[0].image &&
page.serviceOrResource.heroImage[0].image.length > 0
page.serviceOrResource.heroImage.length == 1 &&
page.serviceOrResource.heroImage[0].image &&
page.serviceOrResource.heroImage[0].image.length > 0
"
class="section-banner"
>
Expand Down Expand Up @@ -282,9 +282,9 @@ onMounted(() => {
<BannerText
v-if="
page.workshopSeries &&
(page.workshopSeries.image.length == 0 ||
!page.workshopSeries.image[0].image ||
page.workshopSeries.image[0].image.length == 0)
(page.workshopSeries.image.length == 0 ||
!page.workshopSeries.image[0].image ||
page.workshopSeries.image[0].image.length == 0)
"
:title="page.workshopSeries.title"
:text="page.workshopSeries.summary"
Expand All @@ -297,9 +297,9 @@ onMounted(() => {
<SectionWrapper
v-if="
page.workshopSeries.image &&
page.workshopSeries.image.length == 1 &&
page.workshopSeries.image[0].image &&
page.workshopSeries.image[0].image.length > 0
page.workshopSeries.image.length == 1 &&
page.workshopSeries.image[0].image &&
page.workshopSeries.image[0].image.length > 0
"
class="section-banner"
>
Expand Down

0 comments on commit ebd6d72

Please sign in to comment.