fix(editor): Parse out nodeType (#13474)

This commit is contained in:
Dana
2025-02-25 14:43:45 +01:00
committed by GitHub
parent 59389194c2
commit 1cd13b639e
2 changed files with 44 additions and 1 deletions

View File

@@ -18,7 +18,9 @@ export const getSchemaPreview = async (
): Promise<JSONSchema7> => {
const { nodeType, version, resource, operation } = options;
const versionString = padVersion(version);
const path = ['schemas', nodeType, versionString, resource, operation].filter(Boolean).join('/');
const path = ['schemas', nodeType.replace('@n8n/', ''), versionString, resource, operation]
.filter(Boolean)
.join('/');
return await request({
method: 'GET',
baseURL: baseUrl,