-
{
- const { value } = e.detail;
- if (multiselect) {
- if (checkedKeys.includes(value)) checkedKeys = checkedKeys.filter(x => x != value);
- else checkedKeys = [...checkedKeys, value];
- } else {
- closeCurrentModal();
- onConfirm(value);
- }
- }}
- columns={[
- multiselect && {
- fieldName: 'checked',
- header: '',
- width: '30px',
- slot: 1,
- },
- {
- fieldName: 'value',
- header: 'Value',
- formatter: row => (row.value == null ? '(NULL)' : row.value),
- },
- ]}
- >
- {
- const value = row['value'];
- if (e.target.checked) {
- if (!checkedKeys.includes(value)) checkedKeys = [...checkedKeys, value];
- } else {
+ {#if rows.errorMessage}
+
+ {:else}
+
+ {
+ const { value } = e.detail;
+ if (multiselect) {
if (checkedKeys.includes(value)) checkedKeys = checkedKeys.filter(x => x != value);
+ else checkedKeys = [...checkedKeys, value];
+ } else {
+ closeCurrentModal();
+ onConfirm(value);
}
- e.stopPropagation();
}}
- />
-
-
+ columns={[
+ multiselect && {
+ fieldName: 'checked',
+ header: '',
+ width: '30px',
+ slot: 1,
+ },
+ {
+ fieldName: 'value',
+ header: 'Value',
+ formatter: row => (row.value == null ? '(NULL)' : row.value),
+ },
+ ]}
+ >
+ {
+ const value = row['value'];
+ if (e.target.checked) {
+ if (!checkedKeys.includes(value)) checkedKeys = [...checkedKeys, value];
+ } else {
+ if (checkedKeys.includes(value)) checkedKeys = checkedKeys.filter(x => x != value);
+ }
+ e.stopPropagation();
+ }}
+ />
+
+