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")
) {
const valueLine = findLineByLineId(data?.lineId, data?.stationId);
if (valueLine)
if (valueLine && openModalTerminal)
setLinesConfirmRunPhysical((pre) => [...pre, valueLine]);
}
}
});
socket?.on("summary_tested", (data) => {
if (data?.body) {
if (data?.body && openModalTerminal) {
setDataSummaryTested({
body: data?.body || "",
title: data?.title || "",

View File

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

View File

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