From f416413b7e950348edb940b0dc33e413e81e7620 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 17 Jan 2018 19:52:18 -0800 Subject: [PATCH] fix batch update --- routes/_utils/virtualListStore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/_utils/virtualListStore.js b/routes/_utils/virtualListStore.js index 8867457e..5538eedd 100644 --- a/routes/_utils/virtualListStore.js +++ b/routes/_utils/virtualListStore.js @@ -15,6 +15,10 @@ class VirtualListStore extends Store { batch[subKey] = value requestAnimationFrame(() => { + let batch = this._batches[key] + if (!batch) { + return + } let updatedKeys = Object.keys(batch) if (!updatedKeys.length) { return