Merge branch 'dev-denzel' into cja_new

This commit is contained in:
cja committed 2025-06-02 17:32:51 +03:00
commit aad2eac2c0
1 file changed
+2 -3
+2 -3
View File
@@ -76,6 +76,7 @@
>Назначить сотрудникам</v-tooltip>
</v-btn>
<v-btn
v-if="cardValue.author === accountStore.user.id"
class="mr-2"
color="red-lighten-5"
:size="$vuetify.display.smAndDown ? 'small' : 'default'"
@@ -212,7 +213,7 @@ export default {
},
setup() {
pagecounter();
const accountStore = useAccountStore();
const accountStore = useAccountStore();
const router = useRouter();
const activeTab = ref(0);
const currentTest = ref('');
@@ -299,7 +300,6 @@ export default {
try {
const response = await getTestToUser(id);
console.log('API Response:', response);
const assignmentsByUser = response.reduce((acc, testing) => {
if (testing.user_details && testing.is_active) {
const existingUser = acc.find(u => u.id === testing.user_details.id);
@@ -313,7 +313,6 @@ export default {
}
return acc;
}, []);
console.log('Transformed Data:', assignmentsByUser);
assignedEmployees.value = assignmentsByUser.map(user => user.id);