From facc404cc1926c93880c1891979d602bf42dac2e Mon Sep 17 00:00:00 2001 From: LUCCA DUKIC <109136188+LuccaBitfly@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:52:33 +0200 Subject: [PATCH] refactor: update wrapWithIdentifier to support dynamic key generation - Modified `wrapWithIdentifier` function to accept multiple keys instead of a single `getIdFromRow` function. - The unique identifier `wrapped_identifier` is now generated by joining the values of the specified keys with a dash (`-`). - Adapted all usages of `wrapWithIdentifier` See: BEDS-481 --- .../components/dashboard/table/DashboardTableRewards.vue | 5 +---- frontend/components/notifications/DashboardsTable.vue | 5 +---- frontend/utils/wrapWithIdentifier.ts | 4 ++-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/components/dashboard/table/DashboardTableRewards.vue b/frontend/components/dashboard/table/DashboardTableRewards.vue index c86e377ed..4a04f9d40 100644 --- a/frontend/components/dashboard/table/DashboardTableRewards.vue +++ b/frontend/components/dashboard/table/DashboardTableRewards.vue @@ -155,10 +155,7 @@ const findNextEpochDuties = (epoch: number) => {