From f612c6f894178d816a38ece3a466a50159b1256c Mon Sep 17 00:00:00 2001 From: dulith Date: Mon, 27 Nov 2023 14:52:31 +0530 Subject: [PATCH] Get apiType from api object --- .../src/app/components/Apis/Details/TryOut/TryOutConsole.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/TryOut/TryOutConsole.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/TryOut/TryOutConsole.jsx index 9a6ee7362ae..357534edfb6 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/TryOut/TryOutConsole.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/TryOut/TryOutConsole.jsx @@ -145,7 +145,7 @@ const TryOutConsole = () => { } }, [publisherSettings]); - const isAPIProduct = api.type === 'APIPRODUCT'; + const isAPIProduct = api.apiType === 'APIPRODUCT'; const isAdvertised = api.advertiseInfo && api.advertiseInfo.advertised; const setServersSpec = (spec, serverUrl) => { let schemes;