From a856fe4599ff2e81dbee19290abe3c11b2003981 Mon Sep 17 00:00:00 2001
From: Daniel Karbach <daniel.karbach@localhorst.tv>
Date: Thu, 28 Mar 2024 13:50:36 +0100
Subject: [PATCH] fix combined status aggregation

---
 resources/js/helpers/tracker.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/js/helpers/tracker.js b/resources/js/helpers/tracker.js
index 47a34f1..944da91 100644
--- a/resources/js/helpers/tracker.js
+++ b/resources/js/helpers/tracker.js
@@ -1647,7 +1647,7 @@ export const getCombinedStatus = statuses => {
 	if (statuses.filter(s => ['available', 'cleared'].includes(s)).length === statuses.length) {
 		return 'available';
 	}
-	if (statuses.filter(s => s === 'unavailable').length === statuses.length) {
+	if (statuses.filter(s => ['unavailable', 'cleared'].includes(s)).length === statuses.length) {
 		return 'unavailable';
 	}
 	return 'partial';
-- 
2.39.5