Skip to content

Commit 0593510

Browse files
Merge pull request #485 from fratzinger/patch-9
fix: diffOnPatch
2 parents 030a4b8 + 472ea5b commit 0593510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/service-module.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function makeServiceActions(service: Service<any>) {
155155

156156
params = fastCopy(params)
157157

158-
if (service.FeathersVuexModel && params && !params.data) {
158+
if (service.FeathersVuexModel && (!params || !params.data)) {
159159
data = service.FeathersVuexModel.diffOnPatch(data)
160160
}
161161
if (params && params.data) {

0 commit comments

Comments
 (0)