This commit is contained in:
parent
8701ee0fd4
commit
c948502c26
|
|
@ -151,7 +151,7 @@ const CustomQueryExecutorCard = ({
|
||||||
const updatedData = { ...dataValue, is_backpage: 1 };
|
const updatedData = { ...dataValue, is_backpage: 1 };
|
||||||
// console.log("Data ===== ", updatedData);
|
// console.log("Data ===== ", updatedData);
|
||||||
setDataValue(updatedData);
|
setDataValue(updatedData);
|
||||||
toast.success("Record Marked as Frontpage ! ....");
|
// toast.success("Record Marked as Frontpage ! ....");
|
||||||
} else {
|
} else {
|
||||||
toast.error("Something Went Wrong !...");
|
toast.error("Something Went Wrong !...");
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
|
|
@ -185,7 +185,7 @@ const CustomQueryExecutorCard = ({
|
||||||
const updatedData = { ...dataValue, is_backpage: 1 };
|
const updatedData = { ...dataValue, is_backpage: 1 };
|
||||||
// console.log("Data ===== ", updatedData);
|
// console.log("Data ===== ", updatedData);
|
||||||
setDataValue(updatedData);
|
setDataValue(updatedData);
|
||||||
toast.success("Record Marked as Backpage ! ....");
|
// toast.success("Record Marked as Backpage ! ....");
|
||||||
} else {
|
} else {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
toast.error("Something Went Wrong !...");
|
toast.error("Something Went Wrong !...");
|
||||||
|
|
@ -272,7 +272,7 @@ const CustomQueryExecutorCard = ({
|
||||||
// console.log("Data ===== ", updatedData);
|
// console.log("Data ===== ", updatedData);
|
||||||
setDataValue(updatedData);
|
setDataValue(updatedData);
|
||||||
console.log("Updation successfull ....");
|
console.log("Updation successfull ....");
|
||||||
toast.success("Record Marked As Ev !...");
|
// toast.success("Record Marked As Ev !...");
|
||||||
} else {
|
} else {
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
toast.error("Something Went Wrong !...");
|
toast.error("Something Went Wrong !...");
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const PlayGroundEditContainer = ({
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
};
|
};
|
||||||
|
console.log("image_name ======================= ", imageName)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (data) {
|
if (data) {
|
||||||
setQrcode(data?.qrcode);
|
setQrcode(data?.qrcode);
|
||||||
|
|
@ -85,7 +85,7 @@ const PlayGroundEditContainer = ({
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
console.log("response data ========= ", responseData);
|
console.log("response data ========= ", responseData);
|
||||||
if (responseData?.status === "success") {
|
if (responseData?.status === "success") {
|
||||||
toast.success("Record Updated Successfully ...");
|
// toast.success("Record Updated Successfully ...");
|
||||||
setShowEditContainer(false);
|
setShowEditContainer(false);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -99,6 +99,7 @@ const PlayGroundEditContainer = ({
|
||||||
console.log(registerNumber);
|
console.log(registerNumber);
|
||||||
console.log(subjectCode);
|
console.log(subjectCode);
|
||||||
console.log(barcode, qrcode);
|
console.log(barcode, qrcode);
|
||||||
|
console.log("image_name = ", imageName)
|
||||||
console.log(!registerNumber && !subjectCode && (!barcode || !qrcode));
|
console.log(!registerNumber && !subjectCode && (!barcode || !qrcode));
|
||||||
if (!registerNumber && !subjectCode && (!barcode || !qrcode)) {
|
if (!registerNumber && !subjectCode && (!barcode || !qrcode)) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -129,7 +130,7 @@ const PlayGroundEditContainer = ({
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
console.log("response data ========= ", responseData);
|
console.log("response data ========= ", responseData);
|
||||||
if (responseData?.status === "success") {
|
if (responseData?.status === "success") {
|
||||||
toast.success("Record Updated Successfully ...");
|
// toast.success("Record Updated Successfully ...");
|
||||||
setShowEditContainer(false);
|
setShowEditContainer(false);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue