Skip to content

Commit 9c5c430

Browse files
committed
Add comment
1 parent 2554e04 commit 9c5c430

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Readfile/Readfile.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ const ReadJSONYAMLfile:React.FC<ReadJSONYAMLfileType> = ({setContent, isMulipleF
9696
fileReader.onloadend = handleFileRead;
9797
if(file == null || !(file.type === "application/json" || file.type === "application/x-yaml")) return;
9898

99-
file.type === "application/json" ? setFileType('json') : setFileType('yaml')
99+
file.type === "application/json" ? setFileType('json') : setFileType('yaml');
100+
101+
// TODO: need to store file format globally
102+
console.log(fileType);
100103
setFileName(file.name);
101104
fileReader.readAsText(file);
102105
}

0 commit comments

Comments
 (0)