Skip to content

Commit

Permalink
Fixed slice on undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Machi3mfl authored and AlexRuiz7 committed May 5, 2023
1 parent fc98f18 commit ccf78c4
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 ccf78c4

Please sign in to comment.