solved message error

This commit is contained in:
2025-09-09 18:07:51 +05:30
parent a47ad60813
commit 3a6e349160
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ const Simulations: React.FC = () => {
productUuid: selectedProduct?.productUuid || "",
};
validateSimulationDataApi(singleData).then((getData) => {
echo.log(getData.message);
echo.log(getData?.message);
const getSimulate = getData?.data?.existingSimulatedData;
if (!selectedVersion?.versionId || !projectId || getSimulate === undefined || !selectedProduct.productUuid) {
echo.warn("No prebacked Data found");

View File

@@ -42,7 +42,7 @@ function Simulator() {
if (!product) return;
const getSimulate = getData?.data;
if (getData.message !== "Simulated data not found" && getSimulate && getSimulate.productTimestamp === product?.timestamp) {
if (getData?.message !== "Simulated data not found" && getSimulate && getSimulate.productTimestamp === product?.timestamp) {
addSimulationRecords(projectId, selectedVersion?.versionId || "", selectedProduct?.productUuid || "", getSimulate.data);
echo.warn("Simulation data is up to date");
return;