From a7a4f5f39ff938607252815df14232988593d099 Mon Sep 17 00:00:00 2001 From: gwang0136 Date: Thu, 22 Apr 2021 15:16:12 -1000 Subject: [PATCH] add curly bois --- backend/routes/api/patients.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/routes/api/patients.js b/backend/routes/api/patients.js index f785c909..b5cb3d38 100644 --- a/backend/routes/api/patients.js +++ b/backend/routes/api/patients.js @@ -176,7 +176,9 @@ const modifyFileName = async (filename, data) => { if (filename.includes('.')) { file = filename.split('.')[0]; suffix = '.' + filename.split('.')[1]; - } else file = filename; + } else { + file = filename; + } if (data.filter((e) => e.filename === filename).length > 0) { var numPrev = 1; while (