We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c33279 commit 5106be1Copy full SHA for 5106be1
ui/src/components/ApiAction.tsx
@@ -140,6 +140,7 @@ export default function ApiAction(props: Props) {
140
let data
141
try {
142
data = JSON.parse(dataString) as LRDResponse
143
+ console.log(data)
144
} catch (error: any) {
145
isJson = false
146
// do nothing
@@ -174,7 +175,12 @@ export default function ApiAction(props: Props) {
174
175
})
176
}
177
if (isJson) {
- setResponseData(JSON.stringify(data?.data, null, 2))
178
+ if (data?.data) {
179
+ setResponseData(JSON.stringify(data?.data, null, 2))
180
+ } else {
181
+ setResponseData(JSON.stringify(data, null, 2))
182
+ }
183
+
184
} else {
185
setResponseData(dataString)
186
0 commit comments