Skip to content

Commit 3063e88

Browse files
Merge pull request #401 from intersystems-community/#400-fix
fix if no namespace used
2 parents e4e5ec1 + 6f192c4 commit 3063e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export class AtelierAPI {
345345
if (info && info.result && info.result.content && info.result.content.api > 0) {
346346
const data = info.result.content;
347347
const apiVersion = data.api;
348-
if (!data.namespaces.includes(this.ns)) {
348+
if (this.ns && this.ns.length && !data.namespaces.includes(this.ns)) {
349349
throw {
350350
code: "WrongNamespace",
351351
message: `This server does not have specified namespace '${this.ns}'.\n

0 commit comments

Comments
 (0)