fix(core): Prevent re-parsing of dynamically loaded options (#9503)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import type { INodePropertyOptions } from 'n8n-workflow';
|
||||
import { jsonParse } from 'n8n-workflow';
|
||||
|
||||
import { Post, RestController } from '@/decorators';
|
||||
import { getBase } from '@/WorkflowExecuteAdditionalData';
|
||||
@@ -37,7 +36,7 @@ export class DynamicNodeParametersController {
|
||||
|
||||
if (loadOptions) {
|
||||
return await this.service.getOptionsViaLoadOptions(
|
||||
jsonParse(loadOptions),
|
||||
loadOptions,
|
||||
additionalData,
|
||||
nodeTypeAndVersion,
|
||||
currentNodeParameters,
|
||||
|
||||
@@ -3,6 +3,7 @@ import type {
|
||||
BannerName,
|
||||
ICredentialDataDecryptedObject,
|
||||
IDataObject,
|
||||
ILoadOptions,
|
||||
INodeCredentialTestRequest,
|
||||
INodeCredentials,
|
||||
INodeParameters,
|
||||
@@ -406,19 +407,19 @@ export declare namespace DynamicNodeParametersRequest {
|
||||
{}
|
||||
>;
|
||||
|
||||
/** GET /dynamic-node-parameters/options */
|
||||
/** POST /dynamic-node-parameters/options */
|
||||
type Options = BaseRequest<{
|
||||
loadOptions?: string;
|
||||
loadOptions?: ILoadOptions;
|
||||
}>;
|
||||
|
||||
/** GET /dynamic-node-parameters/resource-locator-results */
|
||||
/** POST /dynamic-node-parameters/resource-locator-results */
|
||||
type ResourceLocatorResults = BaseRequest<{
|
||||
methodName: string;
|
||||
filter?: string;
|
||||
paginationToken?: string;
|
||||
}>;
|
||||
|
||||
/** GET dynamic-node-parameters/resource-mapper-fields */
|
||||
/** POST dynamic-node-parameters/resource-mapper-fields */
|
||||
type ResourceMapperFields = BaseRequest<{
|
||||
methodName: string;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user