mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Fix: Codeclimate issue
This commit is contained in:
parent
c620ff37c7
commit
8a6dd0246a
@ -104,7 +104,8 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
|
||||
const { name, kindString, flags, signatures, sources, decorators } = property
|
||||
const { isPublic, isStatic } = flags
|
||||
const signature = signatures && signatures[0]
|
||||
const comment = (signature && signature.comment) || property.comment
|
||||
const comment = signature?.comment || property.comment
|
||||
|
||||
const deprecation = (decorators || []).filter(
|
||||
({ name }) => name === 'deprecated'
|
||||
)[0] // Assuming deprecated annotation
|
||||
|
Loading…
Reference in New Issue
Block a user