@visns-studio/visns-components 5.9.7 → 5.9.9

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.
@@ -702,12 +702,11 @@ const DataGrid = forwardRef(
702
702
  }
703
703
  });
704
704
 
705
- console.log(
706
- 'Initializing all groups as collapsed:',
707
- initialCollapsedState
708
- );
709
- setCollapsedGroups(initialCollapsedState);
710
- groupsInitializedRef.current = true;
705
+ if (ajaxSetting?.defaultCollapsed === false) {
706
+ } else {
707
+ setCollapsedGroups(initialCollapsedState);
708
+ groupsInitializedRef.current = true;
709
+ }
711
710
  }
712
711
  }
713
712
 
@@ -625,7 +625,14 @@ function Navigation({
625
625
  onContactSaved={(contact) => {
626
626
  console.log('Contact saved:', contact);
627
627
  }}
628
- fields={navData.settings.find(s => s.id === 'businessCardOcr')?.fields || []}
628
+ fields={
629
+ navData.settings.find((s) => s.id === 'businessCardOcr')
630
+ ?.setting.fields || []
631
+ }
632
+ fetchConfig={
633
+ navData.settings.find((s) => s.id === 'businessCardOcr')
634
+ ?.setting.fetch || []
635
+ }
629
636
  />
630
637
  </div>
631
638
  ) : (
@@ -670,7 +677,14 @@ function Navigation({
670
677
  onContactSaved={(contact) => {
671
678
  console.log('Contact saved:', contact);
672
679
  }}
673
- fields={navData.settings.find(s => s.id === 'businessCardOcr')?.fields || []}
680
+ fields={
681
+ navData.settings.find((s) => s.id === 'businessCardOcr')
682
+ ?.setting.fields || []
683
+ }
684
+ fetchConfig={
685
+ navData.settings.find((s) => s.id === 'businessCardOcr')
686
+ ?.setting.fetch || null
687
+ }
674
688
  />
675
689
  </div>
676
690
  );