Skip to content

Commit

Permalink
Fixing warning in Orchard.MediaLibrary/Views/ClientStorage/Index.csht…
Browse files Browse the repository at this point in the history
…ml (LimitConcurrentUploads is a non-nullable int)
  • Loading branch information
BenedekFarkas committed May 17, 2023
1 parent 05e3c19 commit 610b3c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
// Add drag-n-drop HTML5 support
$('#fileupload').fileupload({
autoUpload: true,
@((settings.LimitConcurrentUploads != null && settings.LimitConcurrentUploads > 0) ? "limitConcurrentUploads:" + settings.LimitConcurrentUploads + "," : "")
@((settings.LimitConcurrentUploads > 0) ? "limitConcurrentUploads:" + settings.LimitConcurrentUploads + "," : "")
@if(Model.Replace == null) {
<text>
url: '@Url.Action("Upload")',
Expand Down

0 comments on commit 610b3c4

Please sign in to comment.