Skip to content

Psp 11036 fix mismatch in draft marker numbering#5132

Merged
devinleighsmith merged 11 commits intobcgov:devfrom
devinleighsmith:psp-11036
Jan 5, 2026
Merged

Psp 11036 fix mismatch in draft marker numbering#5132
devinleighsmith merged 11 commits intobcgov:devfrom
devinleighsmith:psp-11036

Conversation

@devinleighsmith
Copy link
Collaborator

No description provided.

@devinleighsmith devinleighsmith self-assigned this Dec 24, 2025
@devinleighsmith devinleighsmith added the bug Something isn't working label Dec 24, 2025
@devinleighsmith devinleighsmith force-pushed the psp-11036 branch 2 times, most recently from e59a374 to f8466ed Compare December 24, 2025 02:47
Comment on lines +76 to +90
const renderPropertyIcon = (
fileProperty: ApiGen_Concepts_FileProperty,
filePropertyIndex: number | null,
) => {
if (!exists(filePropertyIndex)) {
return null;
}

if (fileProperty?.property?.isRetired) {
return (
<StyledDisabledIconWrapper>
{sortedProperties.indexOf(fileProperty) + 1}
</StyledDisabledIconWrapper>
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this function is receiving a number of parameters but also using sortedProperties as a closure. I would prefer to also pass in the sorted array as a parameter for consistency and to avoid closure issues

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5132

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5132

@devinleighsmith devinleighsmith added this pull request to the merge queue Jan 5, 2026
Merged via the queue into bcgov:dev with commit a976c64 Jan 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants