Skip to content

Commit 456621c

Browse files
committed
only call jsonForm if there are params.
1 parent ad95899 commit 456621c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/extractions/submitFileExtraction.scala.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ <h1>Submit file for extraction</h1>
8080
<script>
8181
var params = JSON.parse("@Json.stringify(e.parameters)".replace(/&quot;/g, "\""));
8282
var selector = "#@(e.name.replaceAll("\\.", "_"))_parameters";
83-
$(selector).jsonForm(params);
83+
if (Object.keys(params).length != 0) {
84+
$(selector).jsonForm(params);
85+
}
8486
</script>
8587
}
8688
</tbody>

0 commit comments

Comments
 (0)