diff --git a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Modal.tsx b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Modal.tsx index b37bd17869..4afb33cf5b 100644 --- a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Modal.tsx +++ b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Modal.tsx @@ -147,7 +147,7 @@ const SelectMultiple = (props: SelectMultipleProps) => { const initialTags = getTagsForSlot(uploadedFile.id, fileList); const [tags, setTags] = useState(initialTags); - const previousTags = usePrevious(tags); + const previousTags = usePrevious(tags) || initialTags; const [open, setOpen] = React.useState(false); const handleChange = (event: SelectChangeEvent) => {