merge remote

This commit is contained in:
2024-03-12 00:19:01 +00:00
parent 7703eea760
commit 064f89af68
2 changed files with 4 additions and 5 deletions
@@ -40,15 +40,13 @@ const FileViewer = ({ id }: Props) => {
return <p>File not found.</p>;
}
const { filename } = data;
if (!data.isFile) {
return (
<Suspense fallback={<LoadingLayout />}>
<CodeEditor
filename={filename}
filename={data.filename}
path={data.path}
value={data?.content || ""}
value={data.content || ""}
formatOnSave
onChange={(val) => {
updateFileContent.mutate({