From 1441406a3d9abf0edf6da8148837657ecd31ab77 Mon Sep 17 00:00:00 2001 From: Andrew Nowak Date: Thu, 9 Jan 2025 12:27:18 +0000 Subject: [PATCH] Add a fallback for when the upload limit is undefined 0 is treated as falsy, ie. no limit is defined. without setting a fallback, the produced config object is invalid as the key has no value, meaning that the grid client cannot launch --- kahuna/app/views/main.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kahuna/app/views/main.scala.html b/kahuna/app/views/main.scala.html index c9878299b0..b7af9e1af9 100644 --- a/kahuna/app/views/main.scala.html +++ b/kahuna/app/views/main.scala.html @@ -85,7 +85,7 @@ permissionsDefault: "@kahunaConfig.permissionsDefault", defaultShouldBlurGraphicImages: @kahunaConfig.defaultShouldBlurGraphicImages, shouldUploadStraightToBucket: @kahunaConfig.shouldUploadStraightToBucket, - maybeUploadLimitInBytes: @kahunaConfig.maybeUploadLimitInBytes, + maybeUploadLimitInBytes: @kahunaConfig.maybeUploadLimitInBytes.getOrElse(0), announcements: @Html(announcements), imageTypes: @Html(imageTypes), }