From fc1e78e545a3bb543edc797a8f52272725675bff Mon Sep 17 00:00:00 2001 From: Robin B Date: Sun, 10 Sep 2017 14:21:08 +0200 Subject: [PATCH] fix(DataStore): make resolveID work properly (#1927) --- src/stores/DataStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/DataStore.js b/src/stores/DataStore.js index 1aede94f6..25f7c8c26 100644 --- a/src/stores/DataStore.js +++ b/src/stores/DataStore.js @@ -41,7 +41,7 @@ class DataStore extends Collection { */ resolveID(idOrInstance) { if (idOrInstance instanceof this.holds) return idOrInstance.id; - if (typeof channel === 'string') return idOrInstance; + if (typeof idOrInstance === 'string') return idOrInstance; return null; } }