Skip to content

Commit

Permalink
fix: handle undefined tag arrays (wundergraph#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aenimus authored Oct 24, 2024
1 parent 0c757fa commit 3b50fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/contract/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default (opts: BaseCommandOptions) => {

const spinner = ora('Contract is being created...').start();

if (options.exclude.length > 0 && options.include.length > 0) {
if (options.exclude?.length > 0 && options.include?.length > 0) {
program.error(
pc.red(
pc.bold(
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/contract/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default (opts: BaseCommandOptions) => {
command.action(async (name, options) => {
const spinner = ora('Contract is being updated...').start();

if (options.exclude.length > 0 && options.include.length > 0) {
if (options.exclude?.length > 0 && options.include?.length > 0) {
program.error(
pc.red(
pc.bold(
Expand Down

0 comments on commit 3b50fe3

Please sign in to comment.