@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 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.conversationId && uploadedFile.path) {
162
+ if (uploadedFile.workspaceId && uploadedFile.path) {
163
163
  previewUrl = chatStore.config.services.request.getPreviewUrl({
164
164
  path: uploadedFile.path,
165
- workspaceId: uploadedFile.conversationId
165
+ workspaceId: uploadedFile.workspaceId,
166
+ workspaceType: uploadedFile.workspaceType
166
167
  });
167
168
  }
168
169
  setAttachedFiles(