Merge pull request #21667 from surajshetty3416/fix-dashboard

fix: Add accidentally removed function