diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue
index 9e39b42e5..a6705f451 100644
--- a/src/pages/Account/Card/AccountCard.vue
+++ b/src/pages/Account/Card/AccountCard.vue
@@ -1,7 +1,24 @@
-
+
diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue
index 4f090c918..6b1687746 100644
--- a/src/pages/Account/Card/AccountDescriptor.vue
+++ b/src/pages/Account/Card/AccountDescriptor.vue
@@ -8,19 +8,12 @@ import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
import FetchData from 'src/components/FetchData.vue';
import VnImg from 'src/components/ui/VnImg.vue';
import filter from './AccountFilter.js';
-const $props = defineProps({
- id: {
- type: Number,
- required: false,
- default: null,
- },
-});
+
+const $props = defineProps({ id: { type: Number, default: null } });
const route = useRoute();
const { t } = useI18n();
-const entityId = computed(() => {
- return $props.id || route.params.id;
-});
+const entityId = computed(() => $props.id || route.params.id);
const hasAccount = ref(false);
diff --git a/src/pages/Account/Card/AccountFilter.js b/src/pages/Account/Card/AccountFilter.js
index e0825a6e6..017876564 100644
--- a/src/pages/Account/Card/AccountFilter.js
+++ b/src/pages/Account/Card/AccountFilter.js
@@ -1,13 +1,3 @@
export default {
- fields: [
- 'id',
- 'email',
- 'nickname',
- 'name',
- 'accountStateFk',
- 'packages',
- 'pickup',
- 'role',
- ],
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};
diff --git a/src/pages/Account/Card/AccountSummary.vue b/src/pages/Account/Card/AccountSummary.vue
index cc05d773a..ecfe60da6 100644
--- a/src/pages/Account/Card/AccountSummary.vue
+++ b/src/pages/Account/Card/AccountSummary.vue
@@ -1,33 +1,25 @@
(account = data)"
>
- {{ account.id }} - {{ account.nickname }}
-
+ {{ entity.id }} - {{ entity.nickname }}
+
-
+
diff --git a/src/pages/Account/Role/AccountExprBuilder.js b/src/pages/Account/Role/RoleExprBuilder.js
similarity index 100%
rename from src/pages/Account/Role/AccountExprBuilder.js
rename to src/pages/Account/Role/RoleExprBuilder.js
diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue
index 5e04b8434..3b7a62025 100644
--- a/src/pages/Worker/Card/WorkerCard.vue
+++ b/src/pages/Worker/Card/WorkerCard.vue
@@ -5,7 +5,8 @@ import VnCardBeta from 'src/components/common/VnCardBeta.vue';
diff --git a/src/stores/useArrayDataStore.js b/src/stores/useArrayDataStore.js
index 8d62fdb4a..b6a904dc8 100644
--- a/src/stores/useArrayDataStore.js
+++ b/src/stores/useArrayDataStore.js
@@ -19,6 +19,7 @@ export const useArrayDataStore = defineStore('arrayDataStore', () => {
page: 1,
mapKey: 'id',
keepData: false,
+ oneRecord: false,
};
function get(key) {
@@ -62,5 +63,6 @@ export const useArrayDataStore = defineStore('arrayDataStore', () => {
clear,
reset,
resetPagination,
+ state,
};
});