@isoftdata/svelte-user-configuration 1.0.10 → 1.0.11

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.
@@ -133,14 +133,14 @@ $: computedPermissions = getComputedPermissions(permissions, permissionValueMap,
133
133
  {/each}
134
134
  </div>
135
135
  </Td>
136
- {#if permission.groupValue && permission.computedValue}
136
+ {#if groupPermissionValueMap}
137
137
  <Td
138
138
  property="groupValue"
139
139
  class="px-4"
140
140
  >
141
141
  <span
142
142
  style="width: 5em;"
143
- class="badge badge-pill badge-{permissionValueList[permission.groupValue].color}">{permissionValueList[permission.groupValue].label}</span
143
+ class="badge badge-pill badge-{permissionValueList[permission.groupValue ?? 'NONE'].color}">{permissionValueList[permission.groupValue ?? 'NONE'].label}</span
144
144
  >
145
145
  </Td>
146
146
  <Td
@@ -149,7 +149,7 @@ $: computedPermissions = getComputedPermissions(permissions, permissionValueMap,
149
149
  >
150
150
  <span
151
151
  style="width: 5em;"
152
- class="badge badge-pill badge-{permissionValueList[permission.computedValue].color}">{permissionValueList[permission.computedValue].label}</span
152
+ class="badge badge-pill badge-{permissionValueList[permission.computedValue ?? 'NONE'].color}">{permissionValueList[permission.computedValue ?? 'NONE'].label}</span
153
153
  >
154
154
  </Td>
155
155
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",