Skip to content

Commit

Permalink
fix: rmeove unnecessary type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekMichalSebestyen committed Aug 24, 2023
1 parent 762bbea commit 3c15b2e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions resources/views/frontend/catalog-new/index-new.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ class="tw-mb-3">
</x-filter.reset_button>
</div>
<filter-new-year-slider
v-bind:default-from="Number(query.yearRange?.from)"
v-bind:default-to="Number(query.yearRange?.to)"
v-bind:min="Number(aggregations.date_earliest) - 5"
v-bind:max="Math.min(Number(aggregations.date_latest) + 5, new Date().getFullYear())"
v-bind:default-from="query.yearRange?.from"
v-bind:default-to="query.yearRange?.to"
v-bind:min="aggregations.date_earliest - 5"
v-bind:max="Math.min(aggregations.date_latest + 5, new Date().getFullYear())"
v-on:change="handleYearRangeChange">
</filter-new-year-slider>
</div>
Expand Down Expand Up @@ -391,10 +391,10 @@ class="tw-ml-2"
@endslot
@slot('body')
<filter-new-year-slider class="tw-px-4"
v-bind:default-from="Number(query.yearRange?.from)"
v-bind:default-to="Number(query.yearRange?.to)"
v-bind:min="Number(aggregations.date_earliest) - 5"
v-bind:max="Math.min(Number(aggregations.date_latest) + 5, new Date().getFullYear())"
v-bind:default-from="query.yearRange?.from"
v-bind:default-to="query.yearRange?.to"
v-bind:min="aggregations.date_earliest - 5"
v-bind:max="Math.min(aggregations.date_latest + 5, new Date().getFullYear())"
v-on:change="handleYearRangeChange">
</filter-new-year-slider>
<div v-if="query.yearRange"
Expand Down

0 comments on commit 3c15b2e

Please sign in to comment.