mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
fix: fix integration templates insertion (#4104)
## 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
This commit is contained in:
1 parent
534f4b2c56
commit
5343181c69
1 file changed
+4
-1
@@ -195,7 +195,10 @@ export const Templates = ({
|
||||
instanceId: templateData.rootInstanceId,
|
||||
});
|
||||
}
|
||||
if (productCategory === "pageTemplates") {
|
||||
if (
|
||||
productCategory === "pageTemplates" ||
|
||||
productCategory === "integrationTemplates"
|
||||
) {
|
||||
insertPage({
|
||||
data,
|
||||
pageId: templateData.pageId,
|
||||
|
||||
Reference in new issue
Block a user