From b274d7a027f67d4d3456fdf14cbe039b0ccdb82a Mon Sep 17 00:00:00 2001 From: hasura-bot Date: Thu, 18 Feb 2021 14:47:05 +0530 Subject: [PATCH] console: fix preserving GraphiQL content in local storage GITHUB_PR_NUMBER: 6533 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6533 Co-authored-by: Ikechukwu Eze <22247592+iykekings@users.noreply.github.com> GitOrigin-RevId: 36bfa0bc0a2f5a50f9d912737b08078f4b8c84f9 --- console/src/components/Services/ApiExplorer/ApiExplorer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console/src/components/Services/ApiExplorer/ApiExplorer.js b/console/src/components/Services/ApiExplorer/ApiExplorer.js index 109d842e9775b..aaa13a040a8c2 100644 --- a/console/src/components/Services/ApiExplorer/ApiExplorer.js +++ b/console/src/components/Services/ApiExplorer/ApiExplorer.js @@ -5,6 +5,7 @@ import Helmet from 'react-helmet'; import ApiRequestWrapper from './ApiRequestWrapper'; import globals from '../../../Globals'; +import { getTables } from '../../../metadata/selector'; /* import ApiCollectionPanel from './ApiCollectionPanel'; @@ -120,7 +121,7 @@ const generatedApiExplorer = connect => { credentials: {}, dataApiExplorerData: { ...state.dataApiExplorer }, dataHeaders: state.tables.dataHeaders, - tables: state.tables.allSchemas, + tables: getTables(state), serverConfig: state.main.serverConfig ? state.main.serverConfig.data : {}, }; };