Skip to content

Commit 9476ce9

Browse files
committed
fix cleanup error when instance has no data
1 parent b5c1bf6 commit 9476ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instance/internal/lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export default function (Vue) {
244244
}
245245
// remove reference from data ob
246246
// frozen object may not have observer.
247-
if (this._data.__ob__) {
247+
if (this._data && this._data.__ob__) {
248248
this._data.__ob__.removeVm(this)
249249
}
250250
// Clean up references to private properties and other

0 commit comments

Comments
 (0)