1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 16:19:47 +02:00

fix: Fix incorrect related data when transferring card

Closes #431, closes #803
This commit is contained in:
Maksim Eltyshev 2024-07-15 14:01:06 +02:00
parent 8d37c7c6c9
commit 5c032c674c
7 changed files with 74 additions and 9 deletions

View file

@ -28,6 +28,7 @@ export default class extends BaseModel {
case ActionTypes.CORE_INITIALIZE:
case ActionTypes.PROJECT_MANAGER_CREATE_HANDLE:
case ActionTypes.BOARD_MEMBERSHIP_CREATE_HANDLE:
case ActionTypes.CARD_UPDATE_HANDLE:
if (payload.attachments) {
payload.attachments.forEach((attachment) => {
Attachment.upsert(attachment);