mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 20:38:32 +02:00
prevent accidental submission (#2318)
This commit is contained in:
@@ -55,6 +55,7 @@ export const LlmList: React.FC<LlmListProps> = ({
|
|||||||
>
|
>
|
||||||
{userDefault && (
|
{userDefault && (
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
key={-1}
|
key={-1}
|
||||||
className={`w-full py-1.5 px-2 text-sm ${
|
className={`w-full py-1.5 px-2 text-sm ${
|
||||||
currentLlm == null
|
currentLlm == null
|
||||||
@@ -68,6 +69,7 @@ export const LlmList: React.FC<LlmListProps> = ({
|
|||||||
)}
|
)}
|
||||||
{llmOptions.map(({ name, value }, index) => (
|
{llmOptions.map(({ name, value }, index) => (
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
key={index}
|
key={index}
|
||||||
className={`w-full py-1.5 px-2 text-sm ${
|
className={`w-full py-1.5 px-2 text-sm ${
|
||||||
currentLlm == name
|
currentLlm == name
|
||||||
|
Reference in New Issue
Block a user