I am facing an issue where the data-table values with null entries need to be replaced with empty strings.
There are instances when the department value is empty, resulting in null entries in the data tables.
db = db_open();
db.fuel.toArray().then(fuel => {
fuel.forEach(function(fuel) {
$('#table_bod').append('<tr> <td>'+fuel.department+'</td> </tr> ');
})
});
I attempted the following:
const fuels = db.fuel.where({department: null});
However, this solution does not seem to be effective.