Skip to content

fix(printing): template picker selection highlight ignores selection source for colliding pack/core ids #475

Closed

Description

@khaira777

Child of #438, follow-up from #447 review (greptile P1 at head 4878122).

When an installed pack defines a template whose id is classic or compact, the picker's isSelected predicate compares only billForm.billTemplate === card.id and ignores billForm.billTemplateSource, so both the core card and the pack card render as selected. The persisted save path is already source-aware; only the visual selection state is wrong.

Fix (per review suggestion): compare both id and source:

const isSelected = billForm.billTemplate === card.id
  && billForm.billTemplateSource === card.selectionSource;

Small, contained UI-state fix - good first follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions