We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cedc213 + e3440f7 commit d1418e9Copy full SHA for d1418e9
packages/app/src/cli/utilities/developer-platform-client/partners-client.ts
@@ -365,9 +365,22 @@ export class PartnersClient implements DeveloperPlatformClient {
365
}
366
})
367
368
+ let counter = 0
369
+ const templatesWithPriority = templates.map((template) => ({
370
+ ...template,
371
+ sortPriority: template.sortPriority ?? counter++,
372
+ }))
373
+
374
+ const groupOrder: string[] = []
375
+ for (const template of templatesWithPriority) {
376
+ if (template.group && !groupOrder.includes(template.group)) {
377
+ groupOrder.push(template.group)
378
+ }
379
380
381
return {
- templates,
- groupOrder: [],
382
+ templates: templatesWithPriority,
383
+ groupOrder,
384
385
386
0 commit comments