Skip to content

Commit 5e3be73

Browse files
committed
Fix line break in engine Allowlisted Domains textarea placeholder (#4835)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `placeholder` prop of the `Textarea` component in the `cors.tsx` file to use a JavaScript expression instead of a string literal. ### Detailed summary - Changed the `placeholder` prop from a string literal (`"https://example.com\nhttp://localhost:3000"`) to a JavaScript expression (`{"https://example.com\nhttp://localhost:3000"}`) for potentially better handling of the string. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent ce6d873 commit 5e3be73

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/components/engine/configuration

1 file changed

+1
-1
lines changed

apps/dashboard/src/components/engine/configuration/cors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const EngineCorsConfig: React.FC<EngineCorsConfigProps> = ({
6363
</Flex>
6464

6565
<Textarea
66-
placeholder="https://example.com\nhttp://localhost:3000"
66+
placeholder={"https://example.com\nhttp://localhost:3000"}
6767
rows={4}
6868
{...form.register("raw")}
6969
/>

0 commit comments

Comments
 (0)