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
|
@@ -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/${
|
|
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,
|
|
179
|
+
}, [formRef, location.pathname, companyKey])
|
|
180
180
|
|
|
181
181
|
const onSaveExistingData = useCallback(() => {
|
|
182
182
|
formRef!.validateFields().then((values) => {
|