Skip to content

Commit

Permalink
chore: rm test useXControls feat from custom-next-query-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Nov 7, 2023
1 parent 74e6dd2 commit 9e8cd12
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/search/results/custom-next-query-preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import Result from '../../results/result.vue';
import CustomSlidingPanel from '../../custom-sliding-panel.vue';
import DisplayClickProvider from '../display-click-provider.vue';
import { useXControlsHelpers } from '../../../composables/use-experience-controls.composable';
export default defineComponent({
components: {
Expand All @@ -62,12 +61,7 @@
},
setup() {
const { isTabletOrLess } = useDevice();
const maxItems = useXControlsHelpers({
path: 'nextQueries.maxItems' as never,
defaultValue: 5
});
const maxItemsToRender = computed(() => (isTabletOrLess.value ? undefined : maxItems));
const maxItemsToRender = computed(() => (isTabletOrLess.value ? undefined : 5));
return {
maxItemsToRender
};
Expand Down

0 comments on commit 9e8cd12

Please sign in to comment.