Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,10 @@ export default function Environments() {
};

const externalEnvWithEndpoints = [];
useEffect(() => {
if (!isMCPServer) {
const promise = restApi.getAsyncAPIDefinition(api.id);
useEffect(() => {
const isAPIProduct = api.apiType === API.CONSTS.APIProduct;
if (!isMCPServer && !isAPIProduct) {
const promise = restApi.getAsyncAPIDefinition(api.id);
promise.then(async (response) => {
if (response.data && (typeof response.data === "string" || typeof response.data === "object")) {
let doc;
Expand Down Expand Up @@ -825,7 +826,7 @@ export default function Environments() {
}
})
}
}, [api.id]);
}, [api.id, api.apiType, isMCPServer, allExternalGateways]);

const toggleOpenConfirmDelete = (revisionName, revisionId) => {
setRevisionToDelete([revisionName, revisionId]);
Expand Down