dedupeStaticPaletteIds

fun dedupeStaticPaletteIds(options: List<String>, selectedPaletteId: String): List<String>(source)

Returns a list of static palette IDs with duplicate palettes removed.

When the injected default palette matches a built-in palette (e.g., blue), the list would otherwise show visually identical swatches twice. This helper keeps the selected palette ID while removing duplicates, so the UI reflects the effective palette without redundancy.