fix null value error

This commit is contained in:
codetypes committed 2024-07-23 17:44:18 +08:00
1 parent 54c0ff7356
commit d32c0a54b0
6 files changed
+40 -35

No files matched your search

+2 -2
View File
@@ -156,7 +156,7 @@ export const Workspace: FC = () => {
<div>
<FaExclamationTriangle style={{ fontSize: "60px", color: "#FADB14" }} />
</div>
{unsaves.length == 1 && (
{unsaves.length === 1 && (
<div>{t("workspace.saveOnClose", { name: Path.basename(unsaves[0].path) })}</div>
)}
{unsaves.length > 1 && (
@@ -331,7 +331,7 @@ export const Workspace: FC = () => {
</Flex>
</Flex>
)}
{workspace.editors.length == 0 && (
{workspace.editors.length === 0 && (
<Flex vertical align="center" justify="center" style={{ height: "100%" }}>
<Flex
vertical