Commit c9b76f80 authored by Simon Pastor's avatar Simon Pastor
Browse files

table always show

parent 006015d6
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@ class AppInstanceTable extends Component {
    if (this.props.tableData && this.props.networkFileSelected !== DEFAULT_NO_NETWORK_FILE_SELECTED) {
      data = this.props.tableData.appInstancesTable;
    }
    // const data = this.props.table.entries;
    const order = 'desc';
    const orderBy = 'name';

@@ -87,7 +86,14 @@ class AppInstanceTable extends Component {
    if (!data || !data.length) {
      emptyRows = maxRows;
    } else {
      emptyRows = Math.max(0, maxRows - data.length);
      //disregard non USER application entries
      var validDataLength = 0;
      for (var i = 0; i < data.length; i++) {
        if (data[i].type === 'USER') {
          validDataLength++;
        }
      }
      emptyRows = Math.max(0, maxRows - validDataLength);
    }

    return (