fix: fix event selection event naming (#6753)

This commit is contained in:
Alex Grozav 2023-07-27 11:32:56 +03:00 committed by GitHub
parent 6d810d12ea
commit ec926cdeac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -385,9 +385,9 @@ export default defineComponent({
this.unchanged = false;
this.testMessageSent = false;
const newValue: NodeParameterValue = parameterData.value as string | number;
const parameterPath = parameterData.name.startsWith('parameters.')
const parameterPath = parameterData.name?.startsWith('parameters.')
? parameterData.name.split('.').slice(1).join('.')
: parameterData.name;
: parameterData.name || '';
const nodeParameters = deepCopy(this.nodeParameters);

View file

@ -99,7 +99,7 @@ export default {
},
methods: {
onInput() {
this.$emit(onUpdate);
this.$emit('input');
},
onCheckboxChecked(eventName: string, checked: boolean) {
this.logStreamingStore.setSelectedInGroup(this.destinationId, eventName, checked);