Skip to content

🐞 Fix a bug with `Model.getFromStore` when also passing params

Compare
Choose a tag to compare
@marshallswain marshallswain released this 12 Feb 19:14
· 390 commits to master since this release

This release fixes a bug with the Model.getFromStore method when multiple arguments were provided, as shown here:

import { models } from 'feathers-vuex'
const { Todo } = models.api

const $populateParams = { name: 'org' }
Todo.getFromStore(1, { $populateParams })

When doing a query with the above, the arguments would be passed as an array to the get getter, which would cause it to return nothing. This update makes sure you can use the above syntax and still get a result back from the store.