console: allow creating remote joins from and to the same remote schema

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7879
GitOrigin-RevId: bce0c66a17d5214800ae1b08d4ad46a9501e9295
This commit is contained in:
Varun Choudhary 2023-02-09 12:52:22 +05:30 committed by hasura-bot
parent b01d3a45de
commit 466e60ca8c

View File

@ -46,7 +46,7 @@ const useLoadData = (sourceRemoteSchema: string) => {
}, [fetchSchema, sourceRemoteSchema]);
const remoteSchemaList = React.useMemo(() => {
return data?.filter(schemaName => schemaName !== sourceRemoteSchema);
return data;
}, [data, sourceRemoteSchema]);
const remoteSchemaTypes = (rsData && getTypesFromIntrospection(rsData)) ?? [];