Skip to content

Commit 9656a60

Browse files
committed
new change
1 parent dc3d8bd commit 9656a60

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/src/components/EventConfigEventCreate/BasicInformation.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@ const sourceCreationErrors = computed(() => {
313313
if (configName.value.trim() === '') {
314314
error.name = 'Configuration name is required.'
315315
}
316-
if (vendor.value.trim() === '') {
317-
error.vendor = 'Vendor is required.'
318-
}
319316
if (vendor.value && vendor.value.length > 128) {
320317
error.vendor = 'Vendor must be less than 128 characters.'
321318
}
@@ -673,9 +670,10 @@ const showSourceCreationDialog = () => {
673670
674671
const handleSourceCreationSave = async () => {
675672
try {
673+
const newVendor = vendor.value ? vendor.value : configName.value.split(' ')[1]
676674
const response = await addEventConfigSource(
677675
configName.value,
678-
vendor.value,
676+
newVendor,
679677
''
680678
)
681679
if (response && typeof response === 'object' && response.status === 201) {

0 commit comments

Comments
 (0)