From 27ca9be354617671fde81d922b57a1173596f17b Mon Sep 17 00:00:00 2001 From: Im-younique Date: Tue, 12 Mar 2024 00:03:04 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20data=20undefined=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/service/scrap/getIsScrapPost.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/service/scrap/getIsScrapPost.ts b/client/src/service/scrap/getIsScrapPost.ts index 448fb86..4ece768 100644 --- a/client/src/service/scrap/getIsScrapPost.ts +++ b/client/src/service/scrap/getIsScrapPost.ts @@ -9,7 +9,7 @@ export default async function getIsScrapPost({ const result = await axios_get({ suburl }); - if (!result.isOkay) { + if (!result.isOkay || result.data === undefined) { throw result.error; }