Spaces:
Sleeping
Sleeping
Commit ·
ca17cdd
1
Parent(s): a0eda55
Fix npm install: remove non-existent radix badge pkg; fix nullish coalescing syntax error; fix pydantic extra fields
Browse files
frontend/package.json
CHANGED
|
@@ -38,8 +38,7 @@
|
|
| 38 |
"@radix-ui/react-toast": "^1.2.1",
|
| 39 |
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
| 40 |
"@radix-ui/react-slot": "^1.1.0",
|
| 41 |
-
"@radix-ui/react-separator": "^1.1.0"
|
| 42 |
-
"@radix-ui/react-badge": "^1.0.0"
|
| 43 |
},
|
| 44 |
"devDependencies": {
|
| 45 |
"vite": "^5.4.8",
|
|
|
|
| 38 |
"@radix-ui/react-toast": "^1.2.1",
|
| 39 |
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
| 40 |
"@radix-ui/react-slot": "^1.1.0",
|
| 41 |
+
"@radix-ui/react-separator": "^1.1.0"
|
|
|
|
| 42 |
},
|
| 43 |
"devDependencies": {
|
| 44 |
"vite": "^5.4.8",
|
frontend/src/components/results/QueryFeedback.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export function QueryFeedback({ queryId }: Props) {
|
|
| 21 |
try {
|
| 22 |
await apiFetch(`/api/query/${queryId}/feedback`, {
|
| 23 |
method: 'POST',
|
| 24 |
-
body: JSON.stringify({ sentiment, text: extraText ?? text || undefined }),
|
| 25 |
})
|
| 26 |
setSent(sentiment)
|
| 27 |
setShowFlag(false)
|
|
|
|
| 21 |
try {
|
| 22 |
await apiFetch(`/api/query/${queryId}/feedback`, {
|
| 23 |
method: 'POST',
|
| 24 |
+
body: JSON.stringify({ sentiment, text: (extraText ?? text) || undefined }),
|
| 25 |
})
|
| 26 |
setSent(sentiment)
|
| 27 |
setShowFlag(false)
|