Skip to content

Commit

Permalink
Add a fallback for when the upload limit is undefined
Browse files Browse the repository at this point in the history
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
  • Loading branch information
andrew-nowak committed Jan 9, 2025
1 parent 97764d8 commit 1441406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kahuna/app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 1441406

Please sign in to comment.