We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3105465 commit e4d0136Copy full SHA for e4d0136
1 file changed
frontend/src/modules/admin/modules/insights-projects/components/lf-insights-project-add.vue
@@ -215,11 +215,14 @@ const openModalEditMode = (insightsProjectId: string) => {
215
216
const onProjectSelection = ({ project }: any) => {
217
fetchRepositories(project.id, () => {
218
- Object.assign(form, initialFormState);
+ if (!isEditForm.value) {
219
+ Object.assign(form, initialFormState);
220
+ form.name = project.name;
221
+ form.description = project.description;
222
+ form.logoUrl = project.url;
223
+ }
224
+
225
form.segmentId = project.id;
- form.name = project.name;
- form.description = project.description;
- form.logoUrl = project.url;
226
});
227
};
228
0 commit comments