refactor(editor): Enable @typescript-eslint/no-base-to-string lint rule, fix errors (no-changelog) (#9783)

This commit is contained in:
Elias Meire
2024-06-18 15:04:29 +02:00
committed by GitHub
parent e3cbce5028
commit 7e44cd7f16
6 changed files with 17 additions and 8 deletions

View File

@@ -887,8 +887,9 @@ export default defineComponent({
this.testedSuccessfully = false;
}
const usesExternalSecrets = Object.entries(credentialDetails.data || {}).some(([, value]) =>
/=.*\{\{[^}]*\$secrets\.[^}]+}}.*/.test(`${value}`),
const usesExternalSecrets = Object.entries(credentialDetails.data || {}).some(
([, value]) =>
typeof value !== 'object' && /=.*\{\{[^}]*\$secrets\.[^}]+}}.*/.test(`${value}`),
);
const trackProperties: ITelemetryTrackProperties = {

View File

@@ -132,7 +132,11 @@ const outputTypeParsers: {
} else if (content.id.includes('SystemMessage')) {
message = `**System Message:** ${message}`;
}
if (execData.action && execData.action !== 'getMessages') {
if (
execData.action &&
typeof execData.action !== 'object' &&
execData.action !== 'getMessages'
) {
message = `## Action: ${execData.action}\n\n${message}`;
}

View File

@@ -459,7 +459,7 @@ export default defineComponent({
onModalClose() {
if (!this.hasOnceBeenSaved) {
this.workflowsStore.removeNode(this.node);
if (this.nodeParameters.id) {
if (this.nodeParameters.id && typeof this.nodeParameters.id !== 'object') {
this.logStreamingStore.removeDestination(this.nodeParameters.id.toString());
}
}
@@ -480,7 +480,9 @@ export default defineComponent({
this.uiStore.stateIsDirty = false;
const destinationType = (
this.nodeParameters.__type ? `${this.nodeParameters.__type}` : 'unknown'
this.nodeParameters.__type && typeof this.nodeParameters.__type !== 'object'
? `${this.nodeParameters.__type}`
: 'unknown'
)
.replace('$$MessageEventBusDestination', '')
.toLowerCase();