@zero-library/chat-copilot 3.1.17 → 3.1.18
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/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -159,10 +159,11 @@ var Attachments_default = React10.forwardRef(({ fileUpload, fileUploadConfig, fi
|
|
|
159
159
|
const { data } = await fileUpload(formData, abortController.signal);
|
|
160
160
|
const uploadedFile = data[0];
|
|
161
161
|
let previewUrl = uploadedFile.id;
|
|
162
|
-
if (uploadedFile.
|
|
162
|
+
if (uploadedFile.workspaceId && uploadedFile.path) {
|
|
163
163
|
previewUrl = chatStore.config.services.request.getPreviewUrl({
|
|
164
164
|
path: uploadedFile.path,
|
|
165
|
-
workspaceId: uploadedFile.
|
|
165
|
+
workspaceId: uploadedFile.workspaceId,
|
|
166
|
+
workspaceType: uploadedFile.workspaceType
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
setAttachedFiles(
|