Skip to content

Commit 27c9625

Browse files
Merge pull request #201 from rakutentech/feature/bug
allow no middleware, no debug
2 parents 0c33279 + 5bfc22a commit 27c9625

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/src/components/ApiAction.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ export default function ApiAction(props: Props) {
174174
})
175175
}
176176
if (isJson) {
177-
setResponseData(JSON.stringify(data?.data, null, 2))
177+
if (data?.data) {
178+
setResponseData(JSON.stringify(data?.data, null, 2))
179+
} else {
180+
setResponseData(JSON.stringify(data, null, 2))
181+
}
182+
178183
} else {
179184
setResponseData(dataString)
180185
}

0 commit comments

Comments
 (0)