diff --git a/packages/core/modules-sdk/src/remote-query/query.ts b/packages/core/modules-sdk/src/remote-query/query.ts index 438f5c8ab3550..eb9793c64018d 100644 --- a/packages/core/modules-sdk/src/remote-query/query.ts +++ b/packages/core/modules-sdk/src/remote-query/query.ts @@ -174,8 +174,8 @@ export function createQuery(remoteQuery: RemoteQuery): RemoteQueryFunction { return query.query.apply(query, args) } - backwardCompatibleQuery.graph = query.graph - backwardCompatibleQuery.gql = query.gql + backwardCompatibleQuery.graph = query.graph.bind(query) + backwardCompatibleQuery.gql = query.gql.bind(query) return backwardCompatibleQuery }