Skip to content

Commit

Permalink
Update base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 committed Jan 3, 2024
1 parent ad9bfa0 commit cabc646
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Base {

async getTables() {
const res = await this.getDTable();
return res.tables;
return res ? res.tables : [];
}

async getTableByName(table_name) {
Expand All @@ -91,7 +91,6 @@ class Base {
return this.req.get(url);
}


addTable(table_name, lang) {
const url = `/api/v1/dtables/${this.dtableUuid}/tables/`;
const data = {
Expand Down

0 comments on commit cabc646

Please sign in to comment.