fix: duplicate image issue (#1920)

This commit is contained in:
Dhruwang Jariwala
2024-01-18 15:51:38 +05:30
committed by GitHub
parent 542e4da878
commit f91a7b2c7a
+1 -1
View File
@@ -63,7 +63,7 @@ const QuestionFormInput = ({
const fallbackInputRef = useRef<HTMLInputElement>(null);
const inputRef = useRef<HTMLInputElement>(null);
const [showImageUploader, setShowImageUploader] = useState<boolean>(
questionId === "end" ? false : !!(question as TSurveyQuestion).imageUrl
questionId === "end" ? false : !!(question as TSurveyQuestion).imageUrl && type === "headline"
);
const [showQuestionSelect, setShowQuestionSelect] = useState(false);
const [showFallbackInput, setShowFallbackInput] = useState(false);