Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(template): duplicate issue #8541

Merged
merged 3 commits into from
Aug 13, 2024
Merged

fix(template): duplicate issue #8541

merged 3 commits into from
Aug 13, 2024

Conversation

danilowoz
Copy link
Member

No description provided.

Copy link

codesandbox bot commented Aug 13, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview


const featuredTemplates = FEATURED_IDS.map(id =>
officialTemplates.find(
t => t.id === id && !recentlyUsedTemplatesIds.includes(t.id)
Copy link
Member Author

Choose a reason for hiding this comment

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

We should not exclude templates from this list, because templates are combined now and there is a risky that one recent template exclude the combination template

@@ -41,7 +41,7 @@ export const TemplateList = ({
<TemplateGrid>
{templates.map(template => (
<TemplateCard
key={template.id}
key={template.id + template.browserSandboxId}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was causing duplicated templates

@danilowoz danilowoz merged commit 39e3242 into master Aug 13, 2024
11 of 14 checks passed
@danilowoz danilowoz deleted the draft/adoring-https branch August 13, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants