From 35e0b65b9446a3a8685ad889a862d031bb7edc23 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:26:53 -0400 Subject: [PATCH] Change ID to UUID in Client (#2552) --- src/layout/components/Sidebar/Logo.vue | 10 +++++----- src/utils/set-value-page.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 4ba482c455..83fc3ffb75 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -90,16 +90,16 @@ export default defineComponent({ return store.getters['user/getOrganization'] }) - const clientId = computed(() => { + const client = computed(() => { const { client } = store.getters['user/getRole'] - return client.uuid + return client }) const imageUrl = computed(() => { return pathImageWindows({ - clientId: clientId.value, + clientId: client.value.uuid, tableName: TABLE_NAME_CLIENT, - recordId: clientId.value, + recordId: client.value.id, columnName: COLUMN_NAME, resourceName: `${COLUMN_NAME}.png` }) @@ -136,7 +136,7 @@ export default defineComponent({ title, clientLogo, imageUrl, - clientId, + client, // Computed getRole, systemName, diff --git a/src/utils/set-value-page.js b/src/utils/set-value-page.js index f7c7e8465f..b7b1bfac18 100644 --- a/src/utils/set-value-page.js +++ b/src/utils/set-value-page.js @@ -61,7 +61,7 @@ export function setSessionValues({ if (isEmptyValue(client)) return const link = getPageFavicon({ logo: pathImageWindows({ - clientId: client.id, + clientId: client.uuid, tableName: TABLE_NAME_CLIENT, recordId: client.id, columnName: COLUMN_NAME,