From 5d96c565c10ed8224f5e0b4fb13b8d4f0a4988bf Mon Sep 17 00:00:00 2001 From: xue jiahao Date: Thu, 19 Mar 2026 11:37:57 +0800 Subject: [PATCH] small fix --- src/main/index.ts | 2 +- src/renderer/src/components/AppDetail/AppDetail.tsx | 2 +- src/renderer/src/components/DomainManager/DomainManager.tsx | 2 +- src/renderer/src/stores/fileChangeStore.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index d8a5070..ad03f33 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,4 +1,4 @@ -import { app, shell, BrowserWindow, ipcMain } from "electron"; +import { app, shell, BrowserWindow } from "electron"; import { join } from "path"; import { electronApp, optimizer, is } from "@electron-toolkit/utils"; import { registerIpcHandlers } from "./ipc-handlers"; diff --git a/src/renderer/src/components/AppDetail/AppDetail.tsx b/src/renderer/src/components/AppDetail/AppDetail.tsx index 11a8f3c..cf61199 100644 --- a/src/renderer/src/components/AppDetail/AppDetail.tsx +++ b/src/renderer/src/components/AppDetail/AppDetail.tsx @@ -3,7 +3,7 @@ * Displays app configuration details with file management and deploy functionality. */ -import React, { useCallback, useEffect, useState } from "react"; +import React, { useCallback, useEffect, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; import { Spin, Tag, Space, App as AntApp, Tooltip, Badge } from "antd"; import { Button, Empty } from "@lobehub/ui"; diff --git a/src/renderer/src/components/DomainManager/DomainManager.tsx b/src/renderer/src/components/DomainManager/DomainManager.tsx index cb3d124..f25f61d 100644 --- a/src/renderer/src/components/DomainManager/DomainManager.tsx +++ b/src/renderer/src/components/DomainManager/DomainManager.tsx @@ -150,7 +150,7 @@ const DomainManager: React.FC = ({ collapsed = false, onTogg
{currentDomain.name}
{currentDomain.username} ยท{" "} - + e.stopPropagation()}> {currentDomain.domain}
diff --git a/src/renderer/src/stores/fileChangeStore.ts b/src/renderer/src/stores/fileChangeStore.ts index 9d75dd8..e7dcc5f 100644 --- a/src/renderer/src/stores/fileChangeStore.ts +++ b/src/renderer/src/stores/fileChangeStore.ts @@ -335,7 +335,7 @@ export const useFileChangeStore = create()( hasRemoteChange: (domainId, appId, currentRevision) => { const key = appKey(domainId, appId); const storedRevision = get().appFiles[key]?.serverRevision; - if (storedRevision === null) return false; + if (storedRevision == null) return false; return storedRevision !== currentRevision; }, }),