solved message error
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user