Skip to content

Commit 472ea5b

Browse files
authored
fix: diffOnPatch
1 parent 0af97a1 commit 472ea5b

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)