Skip to content

Commit

Permalink
fix: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Jul 1, 2024
1 parent 9a64fdb commit 66c2865
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/client/composables/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export function useCollection (options) {
onBeforeMount(() => {
if (options.appendItems.value) {
const service = getService()
service.on('created', onItemsUpdated)
service.on('patched', onItemsUpdated)
service.on('updated', onItemsUpdated)
service.on('removed', onItemsUpdated)
Expand All @@ -158,7 +157,6 @@ export function useCollection (options) {
unsubscribe()
if (options.appendItems.value) {
const service = getService()
service.off('created', onItemsUpdated)
service.off('patched', onItemsUpdated)
service.off('updated', onItemsUpdated)
service.off('removed', onItemsUpdated)
Expand Down

0 comments on commit 66c2865

Please sign in to comment.