Skip to content

Commit fe8e7a3

Browse files
committed
Use rawValue for superAttributes
1 parent bc4edb6 commit fe8e7a3

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

resources/js/components/Search/Autocomplete.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import InstantSearchMixin from './InstantSearchMixin.vue'
55
import InstantSearch from 'vue-instantsearch/vue3/es/src/components/InstantSearch'
66
import Hits from 'vue-instantsearch/vue3/es/src/components/Hits.js'
77
import Configure from 'vue-instantsearch/vue3/es/src/components/Configure.js'
8-
import highlight from 'vue-instantsearch/vue3/es/src/components/Highlight.vue.js'
98
import Autocomplete from 'vue-instantsearch/vue3/es/src/components/Autocomplete.vue.js'
109
import Index from 'vue-instantsearch/vue3/es/src/components/Index.js'
1110
import Stats from 'vue-instantsearch/vue3/es/src/components/Stats.vue.js'

resources/views/listing/products.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
'SortBy.vue',
66
'Stats.vue',
77
'Hits.vue',
8-
'Highlight.vue',
98
'Pagination.vue',
109
'Hits.js'
1110
])

src/Models/Traits/Product/HasSuperAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function superAttributeValues(): Attribute
4141
$child->entity_id => $child->{$attribute->attribute_code},
4242
])
4343
->sortBy('sort_order')
44-
->groupBy('value')
44+
->groupBy('rawValue')
4545
->map(fn ($children, $value) => (object) [
4646
'children' => $children->pluck('entity_id'),
4747
'value' => $value,

0 commit comments

Comments
 (0)