Skip to content

Conversation

@petvas
Copy link
Contributor

@petvas petvas commented Jan 18, 2024

IRawGalleryExtension.shortDescription can be undefined, some extensions doesn't have a "shortDescription" like: "temakulakov.hackjb"

The original code already tested if galleryExtension.shortDescription is undefined using ||. This update makes galleryExtension Interface shortDescription field optional and the check using ?? for null or undefined.

@sandy081
Copy link
Member

This does not fixes anything as the current logic is already handling for undefined. Hence closing this PR.

@sandy081 sandy081 closed this Jan 22, 2024
@petvas
Copy link
Contributor Author

petvas commented Jan 22, 2024

This does not fixes anything as the current logic is already handling for undefined. Hence closing this PR.

I respectfully disagree. The type definition is incorrect because it defines an optional field as non-optional.

@sandy081 sandy081 reopened this Jan 24, 2024
@sandy081 sandy081 added this to the February 2024 milestone Jan 24, 2024
…ions doesn't have a "shortDescription" like: "temakulakov.hackjb"
@sandy081 sandy081 self-requested a review February 22, 2024 09:46
@sandy081 sandy081 enabled auto-merge (squash) February 22, 2024 09:47
@sandy081 sandy081 merged commit 6eec64e into microsoft:main Feb 22, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants