diff --git a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx index 87decf9a4e..e11537ca0e 100644 --- a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx +++ b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx @@ -240,11 +240,12 @@ function Component(props: Props) { ), ); setFileUploadStatus(`${slot.file.path} was deleted`); - removeSlots( + const updatedFileList = removeSlots( getTagsForSlot(slot.id, fileList), slot, fileList, ); + setFileList(updatedFileList); }} /> );