1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

(bug) unable to update a space with a deleted machine

This commit is contained in:
Du Peng 2024-03-18 18:36:10 +01:00
parent 1b6f43361c
commit 0b08510473
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## Next release
- improvement: add loader for create/delete availability slot
- Fix a bug: unable to update a space with a deleted machine
## v6.3.16 2024 March 11

View File

@ -18,7 +18,7 @@ export default class ApiLib {
...object,
...attachmentAttributes.reduce((a, name) => { return { ...a, [name]: null }; }, {})
}
}, { dateWithTimezone: true });
}, { dateWithTimezone: true, allowEmptyArrays: true });
attachmentAttributes.forEach((attr) => {
data.delete(`${name}[${attr}]`);
if (Array.isArray(object[attr])) {