@constructor-io/constructorio-client-javascript 2.25.4 → 2.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -178,7 +178,7 @@ var RequestQueue = /*#__PURE__*/function () {
|
|
|
178
178
|
key: "set",
|
|
179
179
|
value: function set(queue) {
|
|
180
180
|
// If queue length is zero, remove entry entirely
|
|
181
|
-
if (queue && queue.length === 0) {
|
|
181
|
+
if (!queue || Array.isArray(queue) && queue.length === 0) {
|
|
182
182
|
RequestQueue.remove();
|
|
183
183
|
} else {
|
|
184
184
|
store.local.set(storageKey, queue);
|