Update view modal

This commit is contained in:
nguyentrungthat 2026-04-16 08:58:55 +07:00
parent b5c84e5cee
commit 1de8ab75a0
3 changed files with 6 additions and 6 deletions

View File

@ -497,14 +497,14 @@ function App() {
data?.listFeatureTested?.includes("DPELP") data?.listFeatureTested?.includes("DPELP")
) { ) {
const valueLine = findLineByLineId(data?.lineId, data?.stationId); const valueLine = findLineByLineId(data?.lineId, data?.stationId);
if (valueLine) if (valueLine && openModalTerminal)
setLinesConfirmRunPhysical((pre) => [...pre, valueLine]); setLinesConfirmRunPhysical((pre) => [...pre, valueLine]);
} }
} }
}); });
socket?.on("summary_tested", (data) => { socket?.on("summary_tested", (data) => {
if (data?.body) { if (data?.body && openModalTerminal) {
setDataSummaryTested({ setDataSummaryTested({
body: data?.body || "", body: data?.body || "",
title: data?.title || "", title: data?.title || "",

View File

@ -68,7 +68,7 @@ export default function ModalConfirmRunPhysical({
title="Confirm Run Test Ports" title="Confirm Run Test Ports"
> >
<Box> <Box>
<ScrollArea h={"50vh"}> <ScrollArea h={"30vh"}>
{dataLines.map((line, i) => ( {dataLines.map((line, i) => (
<Box <Box
key={i} key={i}

View File

@ -1,7 +1,7 @@
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import react from '@vitejs/plugin-react' import react from "@vitejs/plugin-react";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
}) });