@asaleh37/ui-base 25.9.6-3 → 25.9.6-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.9.6-3",
3
+ "version": "25.9.6-4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -30,8 +30,10 @@ const AttachmentImageViewer: React.FC<AttachmentImageViewerProps> = (props) => {
30
30
  setImgSrc(imagePath);
31
31
  };
32
32
  useEffect(() => {
33
- handleImageSrc();
34
- }, [props]);
33
+ if (props?.refKey) {
34
+ handleImageSrc();
35
+ }
36
+ }, [props.refKey]);
35
37
  {
36
38
  /* </Avatar>
37
39
  src={imgSrc}
@@ -97,7 +97,11 @@ const WorkflowDocumentTimeLine: React.FC<WorkflowDocumentTimeLineProp> = (
97
97
  <AttachmentImageViewer
98
98
  showAsAvatar={true}
99
99
  attachmentCode="EMPLOYEE_PHOTOS"
100
- refKey={actionHistoryRecord?.personId + "" || "0"}
100
+ refKey={
101
+ actionHistoryRecord?.personId
102
+ ? actionHistoryRecord?.personId + ""
103
+ : undefined
104
+ }
101
105
  style={{ m: 1, width: 70, height: 70 }}
102
106
  />
103
107
  {index !== props.actionHistory.length - 1 ? (