Files - Migrate attachments in activities (#17808)
As attachment files have migrated from fullPath to file files field, need to migrate richText logic to fit to new attachment file handling + data migration
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
export const getAttachmentPath = (attachmentFullPath: string) => {
|
||||
if (attachmentFullPath.includes('/files-field/')) {
|
||||
return attachmentFullPath?.split('?')[0];
|
||||
}
|
||||
|
||||
if (!attachmentFullPath.includes('/files/')) {
|
||||
return attachmentFullPath?.split('?')[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user