From 6b703c467840d7403063297ab1afa69dffe8dfb1 Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Sun, 26 Mar 2023 21:07:08 +0800 Subject: [PATCH] feat: add empty placeholder when search result is empty (#1416) * feat: add empty placeholder when search result is empty * Update web/src/pages/ResourcesDashboard.tsx Co-authored-by: boojack --------- Co-authored-by: boojack --- web/src/pages/ResourcesDashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/ResourcesDashboard.tsx b/web/src/pages/ResourcesDashboard.tsx index 9db8ade3..bdc63325 100644 --- a/web/src/pages/ResourcesDashboard.tsx +++ b/web/src/pages/ResourcesDashboard.tsx @@ -305,7 +305,7 @@ const ResourcesDashboard = () => { )} - {resources.length === 0 ? ( + {resourceList.length === 0 ? (

{t("resources.no-resources")}

) : ( resourceList