To Hide 0 Qty products from the Inventory dashboard, please follow the steps mentioned below,
Please go to Inventory >> Warehouses and Click on filter icon, then click on “Hide 0 Qty” and Click on OK.