Skip to content

Commit 1a1bcbb

Browse files
committed
fix(OUT-2914): added a check for workspace id before uploading an attachment. workspaceId is needed for building folder structure effecting filePaths
1 parent daced3b commit 1a1bcbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/createUploadFn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const createUploadFn = (config: UploadConfig) => {
1616
return async (file: File) => {
1717
config.onUploadStart?.()
1818
const entityId = config.getEntityId?.() ?? null //lazily loading the entityId because some of the ids are optimistic id and we want the real ids of comments/replies
19-
if (!config.token) {
19+
if (!config.token || !config.workspaceId) {
2020
return undefined
2121
}
2222
try {

0 commit comments

Comments
 (0)