Skip to content

Commit de51159

Browse files
committed
fix: EDITOR-187
1 parent 3df84d9 commit de51159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/data/src/sdk/sdk.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ export class SdkService {
117117
if (this.noApi(api)) {
118118
return Promise.reject('getSchema: ' + this.noApi(api));
119119
}
120-
if (!this.schemaRequests[model]) {
121-
this.schemaRequests[model] = api.getSchema(model);
120+
if (!this.schemaRequests[model] || this.schemaRequests[model].api !== api) {
121+
this.schemaRequests[model] = { request: api.getSchema(model), api };
122122
}
123-
return this.schemaRequests[model];
123+
return this.schemaRequests[model].request;
124124
}
125125

126126
/** Returns the current account. Works for all apis */

0 commit comments

Comments
 (0)