Skip to content

Commit a85d696

Browse files
pdanpdanrstoenescu
authored andcommitted
fix(QTable): Guard existence of $refs.virtScroll in needsReset watcher quasarframework#6038 (quasarframework#6039)
1 parent 096d42f commit a85d696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/table/QTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default Vue.extend({
115115

116116
watch: {
117117
needsReset () {
118-
this.hasVirtScroll === true && this.$refs.virtScroll.reset()
118+
this.hasVirtScroll === true && this.$refs.virtScroll !== void 0 && this.$refs.virtScroll.reset()
119119
}
120120
},
121121

0 commit comments

Comments
 (0)