From e23fd5e3c50e4b7d7ba2dfa5e1ae67b2c44f74c2 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 15 Apr 2019 14:42:17 +0200 Subject: [PATCH] return an empty tag array instead of null --- src/appdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appdb.js b/src/appdb.js index e6a785080..812ec6b95 100644 --- a/src/appdb.js +++ b/src/appdb.js @@ -97,7 +97,7 @@ function postProcess(result) { delete result.restoreConfigJson; assert(result.tagsJson === null || typeof result.tagsJson === 'string'); - result.tags = safe.JSON.parse(result.tagsJson) || null; + result.tags = safe.JSON.parse(result.tagsJson) || []; delete result.tagsJson; assert(result.hostPorts === null || typeof result.hostPorts === 'string');