@mixd-id/web-scaffold 0.1.240411004 → 0.1.240411005

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411004",
4
+ "version": "0.1.240411005",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -453,6 +453,8 @@ export default{
453
453
  },
454
454
 
455
455
  async loadEnums(items){
456
+ if(!items) return
457
+
456
458
  return Promise.all((this.preset.columns ?? []).map(async column => {
457
459
 
458
460
  if(column.enumSrc) {
@@ -870,7 +870,7 @@ export default{
870
870
  ...((this.config ?? {}).filters !== false ? [{ text:'Filters', value:2 }] : []),
871
871
  ...((this.config ?? {}).sorts !== false ? [{ text:'Sorts', value:3 }] : []),
872
872
  ...((this.config ?? {}).pivot !== false ? [{ text:'Pivot', value:5 }] : []),
873
- ...(this.controller ? [{ text:'Sharing', value:6 }] : []),
873
+ ...(this.controller && (this.config ?? {}).sharing !== false ? [{ text:'Sharing', value:6 }] : []),
874
874
  ],
875
875
  chart: [
876
876
  ...((this.config ?? {}).filters !== false ? [{ text:'Filters', value:2 }] : []),