Hiding table if server action returns no resul

I have a table that lists balances based on an a selected input. Two cells on the table are calculated fields using values from the other columns of each row. The server action includes two queries that calculate three sums (load_total, ordered_total, and invoiced_total). When the result for those sums come back with no results, the calculated fields display “invalid amount” as expected. However, the cells containing the sums still displays the previous values displayed when they should be “no result”. How can I have NO RESULT or $0.00 displayed if no result was found in the server action queries?

I’m somewhat new to Wappler so please provide details instructions. Thanks so much for your help!

Community Page
Last updated: