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

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-5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -229,6 +229,7 @@ const TemplateForm: React.FC<TemplateFormProps> = (
229
229
  }}
230
230
  cancelActionCallBk={() => {
231
231
  setWorkflowWindowState(false);
232
+ loadRecord();
232
233
  }}
233
234
  />
234
235
  </WorkflowWindow>
@@ -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}
@@ -123,7 +123,7 @@ const WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {
123
123
  refDocumentId: props.refDocumentId,
124
124
  },
125
125
  successCallBkFn: (response: any) => {
126
- setWorkflowDocumentInfo(structuredClone(response.data));
126
+ setWorkflowDocumentInfo(structuredClone(response.data));
127
127
  },
128
128
  failureCallBkFn: () => {
129
129
  setWorkflowDocumentInfo({
@@ -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 ? (