fix: eliminate unintended side-effects in computed property
This commit is contained in:
parent
314255dc31
commit
08e01502c5
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ const props = defineProps<Props>()
|
|||
const filterOptions = ref<number[]>([])
|
||||
|
||||
const filteredItems = computed(() =>
|
||||
props.data
|
||||
[...props.data]
|
||||
.sort((a, b) => a.rating - b.rating)
|
||||
.filter((kink) => filterOptions.value.some((filterNum) => kink.rating === filterNum))
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue