diff --git a/app/api/bedrock.ts b/app/api/bedrock.ts index b2b04cc32..c8709722e 100644 --- a/app/api/bedrock.ts +++ b/app/api/bedrock.ts @@ -190,7 +190,6 @@ export async function handle( } // If stream is false, accumulate the response and return as JSON - console.log("Body.stream==========" + body.stream); if (body.stream === false) { let fullResponse = { content: "", diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index 1df0462c0..5f183c8c4 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -272,19 +272,20 @@ export function Input(props: InputProps) { export function PasswordInput( props: HTMLProps & { aria?: string; - maskWhenShow?: boolean; // New prop to control masking behavior + maskWhenShow?: boolean; }, ) { const [visible, setVisible] = useState(false); const [displayValue, setDisplayValue] = useState(props.value as string); + const { maskWhenShow, ...inputProps } = props; useEffect(() => { - if (props.maskWhenShow && visible && props.value) { + if (maskWhenShow && visible && props.value) { setDisplayValue(maskSensitiveValue(props.value as string)); } else { setDisplayValue(props.value as string); } - }, [visible, props.value, props.maskWhenShow]); + }, [visible, props.value, maskWhenShow]); function changeVisibility() { setVisible(!visible); @@ -305,7 +306,7 @@ export function PasswordInput( className={"password-eye"} />