fix null value error
This commit is contained in:
1 parent
54c0ff7356
commit
d32c0a54b0
6 files changed
+40
-35
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user