impaktapps-ui-builder 0.0.963-copyElement.1014 → 0.0.963-copyElement.1016

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.1014",
3
+ "version": "0.0.963-copyElement.1016",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -62,7 +62,7 @@ export const refreshPage = (type: string, store: any) => {
62
62
  }
63
63
  if (sessionStorage.getItem("copiedConfig") ) {
64
64
  const formData = JSON.parse(sessionStorage.getItem("copiedConfig"));
65
- UiSchema.elements[4].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
65
+ UiSchema.elements[2].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
66
66
  }
67
67
  store.setUiSchema(UiSchema);
68
68
  }
@@ -251,6 +251,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
251
251
  const schema = cloneDeep(paramStore.schema );
252
252
  const uiSchema = cloneDeep(paramStore.uiSchema);
253
253
  schema.properties.RemoveItemButton.disabled = true;
254
+ uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
254
255
  // schema.properties.Paste_Icon.disabled = true;
255
256
  sessionStorage.removeItem('copiedConfig');
256
257
  store.setSchema(schema);