mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
Fix attachment duplication on add
This commit is contained in:
@@ -10,8 +10,8 @@ export const transformAttachment = (attachment) => ({
|
||||
|
||||
/* Actions */
|
||||
|
||||
const createAttachment = (cardId, data, headers) =>
|
||||
http.post(`/cards/${cardId}/attachments`, data, headers).then((body) => ({
|
||||
const createAttachment = (cardId, data, requestId, headers) =>
|
||||
http.post(`/cards/${cardId}/attachments?requestId=${requestId}`, data, headers).then((body) => ({
|
||||
...body,
|
||||
item: transformAttachment(body.item),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user