impaktapps-ui-builder 0.0.963-copyElement.1018 → 0.0.963-copyElement.1019

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-copyElement.1018",
3
+ "version": "0.0.963-copyElement.1019",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -234,17 +234,17 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
234
234
  }
235
235
  const pastedElementParentPath = store.searchParams?.get("path");
236
236
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
237
- const insertElementIndex = elementType === "component" ? formData.elements.length : formData.events.length;
237
+ const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
238
238
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
239
239
 
240
240
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
241
- if(copiedConfig.Handler && elementType === "component"){
241
+ if(copiedConfig.Handler && elementType === "Component"){
242
242
  store.setNotify({
243
243
  FailMessage: "The pasted content is invalid; the event cannot be integrated into the component section.",
244
244
  Fail: true,
245
245
  });
246
246
  }
247
- else if(copiedConfig.elements && elementType === "event"){
247
+ else if(copiedConfig.elements && elementType === "Event"){
248
248
  store.setNotify({
249
249
  FailMessage: "The pasted content is invalid; the component cannot be integrated into the event section.",
250
250
  Fail: true,