form-craft-package 1.1.5 → 1.1.6

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": "form-craft-package",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -167,7 +167,7 @@ export const DynamicFormButtonRender = memo(
167
167
  console.log(fullUrl)
168
168
  const blobName = 'abc'
169
169
  client
170
- .post(`/api/attachment/pdf/${formKey}/${fullUrl}/${blobName}`)
170
+ .post(`/api/attachment/pdf/${companyKey}/${fullUrl}/${blobName}`)
171
171
  .then((res) => {
172
172
  if (res.status < 300) {
173
173
  console.log(res.data)
@@ -176,7 +176,7 @@ export const DynamicFormButtonRender = memo(
176
176
  })
177
177
  .catch(() => error({ message: 'Error occured while generating PDF!' }))
178
178
  })
179
- }, [formRef, location.pathname, formKey])
179
+ }, [formRef, location.pathname, companyKey])
180
180
 
181
181
  const onSaveExistingData = useCallback(() => {
182
182
  formRef!.validateFields().then((values) => {