Skip to content

Commit

Permalink
fix: fix integration templates insertion (#4104)
Browse files Browse the repository at this point in the history
## Description

Previous change broke insertion of integration templates

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
  • Loading branch information
kof committed Sep 10, 2024
1 parent d0f3ad8 commit 2a0bb84
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ export const Templates = ({
instanceId: templateData.rootInstanceId,
});
}
if (productCategory === "pageTemplates") {
if (
productCategory === "pageTemplates" ||
productCategory === "integrationTemplates"
) {
insertPage({
data,
pageId: templateData.pageId,
Expand Down

0 comments on commit 2a0bb84

Please sign in to comment.