Skip to content

Commit 1c3deb9

Browse files
committed
fix: avoid changing url params initially to avoid screenshot test failure
1 parent c2faa55 commit 1c3deb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/prompt-input/simple.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function PromptInputPage() {
7171
}, [hasText]);
7272

7373
useEffect(() => {
74-
if (textareaValue !== placeholderText) {
74+
if (hasText && textareaValue !== placeholderText) {
7575
setUrlParams({ hasText: false });
7676
}
7777
// eslint-disable-next-line react-hooks/exhaustive-deps

0 commit comments

Comments
 (0)