Commit c56d2394 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

array length로 변경

parent accfcc36
......@@ -45,7 +45,7 @@ export const getAnswers = async (surveyId: string) => {
console.log("result:", result);
if (survey && result[0]) {
if (survey && result.length > 0) {
const Jsurvey = survey.toJSON();
Jsurvey.questions = result;
return Jsurvey;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment