mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Refactor project utils splitName (no-changelog) (#10669)
This commit is contained in:
@@ -9,7 +9,16 @@ type Props = {
|
||||
|
||||
const props = defineProps<Props>();
|
||||
|
||||
const processedName = computed(() => splitName(props.project.name ?? ''));
|
||||
const processedName = computed(() => {
|
||||
const { name, email } = splitName(props.project.name ?? '');
|
||||
const nameArray = name?.split(' ');
|
||||
const lastName = nameArray?.pop() ?? '';
|
||||
return {
|
||||
firstName: nameArray?.join(' ') ?? '',
|
||||
lastName,
|
||||
email,
|
||||
};
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div :class="$style.projectInfo" data-test-id="project-sharing-info">
|
||||
|
||||
Reference in New Issue
Block a user