mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Implement workflowSelector parameter type (#10482)
This commit is contained in:
@@ -1580,7 +1580,7 @@ export function addToIssuesIfMissing(
|
||||
(nodeProperties.type === 'multiOptions' && Array.isArray(value) && value.length === 0) ||
|
||||
(nodeProperties.type === 'dateTime' && value === undefined) ||
|
||||
(nodeProperties.type === 'options' && (value === '' || value === undefined)) ||
|
||||
(nodeProperties.type === 'resourceLocator' &&
|
||||
((nodeProperties.type === 'resourceLocator' || nodeProperties.type === 'workflowSelector') &&
|
||||
!isValidResourceLocatorParameterValue(value as INodeParameterResourceLocator))
|
||||
) {
|
||||
// Parameter is required but empty
|
||||
@@ -1654,7 +1654,10 @@ export function getParameterIssues(
|
||||
}
|
||||
}
|
||||
|
||||
if (nodeProperties.type === 'resourceLocator' && isDisplayed) {
|
||||
if (
|
||||
(nodeProperties.type === 'resourceLocator' || nodeProperties.type === 'workflowSelector') &&
|
||||
isDisplayed
|
||||
) {
|
||||
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path);
|
||||
if (isINodeParameterResourceLocator(value)) {
|
||||
const mode = nodeProperties.modes?.find((option) => option.name === value.mode);
|
||||
|
||||
Reference in New Issue
Block a user