fixed bug
This commit is contained in:
@@ -71,7 +71,7 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label="تصویر بازدید" />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.recognize_picture}
|
||||
src={data.recognize_picture ?? ""}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="recognize_picture"
|
||||
fill
|
||||
@@ -87,9 +87,9 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label="تصویر بازدید" />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.recognize_picture_second}
|
||||
src={data.recognize_picture_second ?? ""}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="recognize_picture"
|
||||
alt="recognize_picture_second"
|
||||
fill
|
||||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||
/>
|
||||
@@ -105,7 +105,7 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label="تصویر در حین کار" />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.action_picture}
|
||||
src={data.action_picture ?? ""}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="action_picture"
|
||||
fill
|
||||
@@ -121,7 +121,7 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label="تصویر اتمام عملیات" />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.finish_picture}
|
||||
src={data.finish_picture ?? ""}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="finish_picture"
|
||||
fill
|
||||
@@ -137,7 +137,7 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label={"تصویر صورت جلسه"} />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.evidence_picture}
|
||||
src={data.evidence_picture ?? ""}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="evidence_picture"
|
||||
fill
|
||||
@@ -151,4 +151,4 @@ const ContentInfoItem = ({ data }) => {
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
export default ContentInfoItem;
|
||||
export default ContentInfoItem;
|
||||
Reference in New Issue
Block a user