Skip to content

Commit

Permalink
Fix slice on undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
Machi3mfl committed May 8, 2023
1 parent fc98f18 commit cdb5621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class InjectedMetadataService {
},

getWazuhDocVersion: () => {
return this.state.wazuhVersion.slice(0, 3) || 'current';
return this.state.wazuhVersion?.slice(0, 3) || 'current';
},
};
}
Expand Down

0 comments on commit cdb5621

Please sign in to comment.