added check if empty
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<h2>Sodelujoči</h2>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="row">
|
||||
<div class="row" id="my_dataviz_title">
|
||||
<div class="col-12">
|
||||
<h2>Število oddaj na uporabnika</h2>
|
||||
</div>
|
||||
@@ -112,6 +112,7 @@
|
||||
// Parse the Data
|
||||
d3.json("/topuploads-institution/{{institution_id}}").then(function(jsondata) {
|
||||
if(Object.keys(jsondata).length < 1) {
|
||||
document.getElementById("my_dataviz_title").remove();
|
||||
return;
|
||||
}
|
||||
data = [];
|
||||
|
||||
Reference in New Issue
Block a user