solved message error
This commit is contained in:
@@ -49,7 +49,7 @@ const Simulations: React.FC = () => {
|
|||||||
productUuid: selectedProduct?.productUuid || "",
|
productUuid: selectedProduct?.productUuid || "",
|
||||||
};
|
};
|
||||||
validateSimulationDataApi(singleData).then((getData) => {
|
validateSimulationDataApi(singleData).then((getData) => {
|
||||||
echo.log(getData.message);
|
echo.log(getData?.message);
|
||||||
const getSimulate = getData?.data?.existingSimulatedData;
|
const getSimulate = getData?.data?.existingSimulatedData;
|
||||||
if (!selectedVersion?.versionId || !projectId || getSimulate === undefined || !selectedProduct.productUuid) {
|
if (!selectedVersion?.versionId || !projectId || getSimulate === undefined || !selectedProduct.productUuid) {
|
||||||
echo.warn("No prebacked Data found");
|
echo.warn("No prebacked Data found");
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function Simulator() {
|
|||||||
if (!product) return;
|
if (!product) return;
|
||||||
const getSimulate = getData?.data;
|
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);
|
addSimulationRecords(projectId, selectedVersion?.versionId || "", selectedProduct?.productUuid || "", getSimulate.data);
|
||||||
echo.warn("Simulation data is up to date");
|
echo.warn("Simulation data is up to date");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user