From abe08aa269b33df19ed37c58306d260d68717bd5 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Wed, 16 Sep 2020 18:34:52 -0400 Subject: [PATCH] count check --- .../MVMCore/AlertHandling/MVMCoreAlertHandler+Extension.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCore/MVMCore/AlertHandling/MVMCoreAlertHandler+Extension.swift b/MVMCore/MVMCore/AlertHandling/MVMCoreAlertHandler+Extension.swift index 44e8a08..ff79aa7 100644 --- a/MVMCore/MVMCore/AlertHandling/MVMCoreAlertHandler+Extension.swift +++ b/MVMCore/MVMCore/AlertHandling/MVMCoreAlertHandler+Extension.swift @@ -42,6 +42,7 @@ public extension MVMCoreAlertHandler { for case let operation as MVMCoreTopAlertOperation in topAlertQueue.operations { if !operation.isCancelled, let pages = operation.topAlertObject.json?.optionalArrayForKey("pages") as? [String], + pages.count > 0, (pageType == nil || !pages.contains(pageType!)) { if operation.isExecuting { operation.reAddAfterCancel = operation.topAlertObject.persistent