@asaleh37/ui-base 1.2.18 → 1.2.19

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": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -581,7 +581,11 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
581
581
  }
582
582
  }
583
583
  }
584
- if (props?.attachment) {
584
+ if (
585
+ record[props?.keyColumnName || "id"] &&
586
+ record[props?.keyColumnName || "id"] > 0 &&
587
+ props?.attachment
588
+ ) {
585
589
  actions?.push(
586
590
  <GridActionsCellItem
587
591
  icon={
@@ -606,7 +610,11 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
606
610
  />
607
611
  );
608
612
  }
609
- if (props?.workFlowDocumentCode) {
613
+ if (
614
+ record[props?.keyColumnName || "id"] &&
615
+ record[props?.keyColumnName || "id"] > 0 &&
616
+ props?.workFlowDocumentCode
617
+ ) {
610
618
  actions?.push(
611
619
  <GridActionsCellItem
612
620
  icon={