Skip to content

Commit b0b2c18

Browse files
authored
fix: organizations autocomplete (#3472)
1 parent a456cd7 commit b0b2c18

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

frontend/src/modules/admin/modules/insights-projects/components/lf-insights-project-add.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ const onSubmit = () => {
286286
const request = buildRequest({
287287
...form,
288288
});
289-
console.log(request);
290289
if (isEditForm.value) {
291290
updateMutation.mutate({
292291
id: props.insightsProjectId as string,

frontend/src/modules/admin/modules/insights-projects/pages/insights-projects.page.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ const projects = computed((): InsightsProjectModel[] => {
197197
});
198198
199199
watch(() => route.query, (query) => {
200-
console.log('query', query);
201200
if (query?.search !== search.value) {
202201
search.value = query.search as string || '';
203202
}
@@ -207,7 +206,6 @@ watch(() => route.query, (query) => {
207206
208207
watch(search, (value) => {
209208
if (value !== route.query?.search) {
210-
console.log('search', value);
211209
router.replace({
212210
query: {
213211
...route.query,

frontend/src/modules/admin/modules/insights-projects/services/insights-projects.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export class InsightsProjectsService {
3737
}
3838

3939
update(id: string, project: InsightsProjectRequest) {
40-
console.log(project);
4140
return authAxios
4241
.post<InsightsProjectModel>(
4342
`/collections/insights-projects/${id}`,

frontend/src/shared/form/autocomplete-one-input.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,12 @@ export default {
188188
189189
methods: {
190190
async onChange(value) {
191-
const { query } = this.$refs.input;
192-
193191
if (
194-
typeof query === 'string'
195-
&& query !== ''
192+
this.currentQuery !== ''
196193
&& this.createIfNotFound
197194
&& !value
198195
) {
199-
const newItem = await this.createFn(query);
196+
const newItem = await this.createFn(this.currentQuery);
200197
this.localOptions.push(newItem);
201198
this.$emit('update:modelValue', newItem);
202199
} else {

0 commit comments

Comments
 (0)