diff --git a/src/core/instance/state.js b/src/core/instance/state.js index b1549b0dcc4..fb37b9a32ff 100644 --- a/src/core/instance/state.js +++ b/src/core/instance/state.js @@ -224,9 +224,7 @@ export function defineComputed ( ? createComputedGetter(key) : userDef.get : noop - sharedPropertyDefinition.set = userDef.set - ? userDef.set - : noop + sharedPropertyDefinition.set = userDef.set || noop } if (process.env.NODE_ENV !== 'production' && sharedPropertyDefinition.set === noop) {