From e9190f49bab1d420c999dc9ce5dd4b82d395cf76 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 21 Aug 2018 13:47:01 -0700 Subject: [PATCH] Fix a blocking queries bug The lowest valid blocking query index is 1, but the API will return 0 if there has yet to be an index set (no response). This in conjunction with that 0 being stored as a string made the "fallback to 1" guard not work. --- ui/app/services/watch-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/services/watch-list.js b/ui/app/services/watch-list.js index 51154d6bd..4387c40c4 100644 --- a/ui/app/services/watch-list.js +++ b/ui/app/services/watch-list.js @@ -18,6 +18,6 @@ export default Service.extend({ }, setIndexFor(url, value) { - list[url] = value; + list[url] = +value; }, });