Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74b7b08

Browse files
committed
fix: removed duplicate code
1 parent1389812 commit74b7b08

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

‎app/client/src/pages/Editor/QueryEditor/QueryDebuggerTabs.tsx‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,7 @@ function QueryDebuggerTabs({
152152
if(isString(actionResponse.body)){
153153
try{
154154
// Try to parse response as JSON array to be displayed in the Response tab
155-
constparsedOutput=JSON.parse(actionResponse.body);
156-
console.log("Parsed output:",parsedOutput);
157-
if(Array.isArray(parsedOutput)){
158-
output=parsedOutput;
159-
}elseif(parsedOutput.records&&Array.isArray(parsedOutput.records)){
160-
output=parsedOutput.records;
161-
}else{
162-
output=[parsedOutput];
163-
}
155+
output=JSON.parse(actionResponse.body);
164156
}catch(e){
165157
// In case the string is not a JSON, wrap it in a response object
166158
output=[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp