Skip to content

Commit

Permalink
fix: prevent empty new name
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Dec 9, 2024
1 parent 8b7403d commit 1fe1908
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src2/query/components/QueryBuilderTableColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const props = defineProps<{ column: QueryResultColumn }>()
const query = inject('query') as Query
function onRename(new_name: string) {
new_name = new_name.trim()
if (new_name === props.column.name) return
if (!new_name) return
query.renameColumn(props.column.name, new_name)
}
Expand Down

0 comments on commit 1fe1908

Please sign in to comment.