diff --git a/src/components/fm.tsx b/src/components/fm.tsx index a8aff7e..178a3da 100644 --- a/src/components/fm.tsx +++ b/src/components/fm.tsx @@ -161,7 +161,8 @@ const FMComponent: React.FC = ({ wsUrl, } useEffect(() => { - const ws = new WebSocket(wsUrl) + const url = new URL(wsUrl, window.location.origin) + const ws = new WebSocket(url) wsRef.current = ws ws.binaryType = "arraybuffer" ws.onopen = () => { diff --git a/src/components/server-config-batch.tsx b/src/components/server-config-batch.tsx index 57a2ed6..793e3b5 100644 --- a/src/components/server-config-batch.tsx +++ b/src/components/server-config-batch.tsx @@ -54,7 +54,17 @@ export const ServerConfigCardBatch: React.FC = ({ si setOpen(false) } - return ( + return sid.length < 1 ? ( + { + toast(t("Error"), { + description: t("Results.NoRowsAreSelected"), + }) + }} + /> + ) : ( @@ -67,7 +77,7 @@ export const ServerConfigCardBatch: React.FC = ({ si
- + = ({ si setCurrentKey(e.target.value) }} /> - +