From d7bbfa9d5c1af9355d4ed433a0b1a163790240d7 Mon Sep 17 00:00:00 2001 From: victorhmp Date: Tue, 28 Apr 2020 13:52:40 -0300 Subject: [PATCH 1/2] Fix useAppsDirectory logic This should prevent the useAppsDirectory argument being passed to ComponentList query from being wrong. --- react/ComponentsGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/ComponentsGrid.tsx b/react/ComponentsGrid.tsx index bf23428..8053cf1 100644 --- a/react/ComponentsGrid.tsx +++ b/react/ComponentsGrid.tsx @@ -15,7 +15,7 @@ const ComponentsGrid: FC = () => { page, } = useRuntime() - const useAppsDirectory = page === 'docs.apps-list' + const useAppsDirectory = page === 'docs-ui.apps-list' const { data, error, loading } = useQuery<{ componentsList: Record< From 082abf4991389f8479c0e2149217ea90a648cc09 Mon Sep 17 00:00:00 2001 From: victorhmp Date: Tue, 28 Apr 2020 13:54:36 -0300 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb0ca4b..5486608 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Component grid would be rendered empty due to a variable being passed to the ComponentList query with the wrong value. ## [2.0.3] - 2020-04-22 ### Changed