Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix: fix length of undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuadop committed Feb 16, 2022
1 parent 46649b8 commit 2f93152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ardb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class ArDB {
});
}

const $oTags = this.options.tags.length ? this.options.tags : [];
const $oTags = this.options.tags && this.options.tags.length ? this.options.tags : [];
this.options.tags = [...ts, ...$oTags];
return this;
}
Expand Down

0 comments on commit 2f93152

Please sign in to comment.