mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Notion Node): Fix broken Notion node parameters (#7864)
We've introduced a new version(`2.1` of Notion node in #7791 but not all `diplayOptions` conditions were updated. This would effectively prevent most of the required Notion fields from loading. This PR adds the new version to all `@version` display conditions which contain version `2`. https://github.com/n8n-io/n8n/assets/12657221/4254c646-43b6-46b3-adcc-1b17746901da Github issue / Community forum post (link here to close automatically): --------- Signed-off-by: Oleg Ivaniv <me@olegivaniv.com> Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
@@ -936,10 +936,12 @@ export function getSearchFilters(resource: string) {
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2],
|
||||
resource: [resource],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
hide: {
|
||||
'@version': [1],
|
||||
},
|
||||
},
|
||||
default: 'none',
|
||||
},
|
||||
@@ -959,11 +961,13 @@ export function getSearchFilters(resource: string) {
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2],
|
||||
resource: [resource],
|
||||
operation: ['getAll'],
|
||||
filterType: ['manual'],
|
||||
},
|
||||
hide: {
|
||||
'@version': [1],
|
||||
},
|
||||
},
|
||||
default: 'anyFilter',
|
||||
},
|
||||
@@ -976,11 +980,13 @@ export function getSearchFilters(resource: string) {
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2],
|
||||
resource: [resource],
|
||||
operation: ['getAll'],
|
||||
filterType: ['manual'],
|
||||
},
|
||||
hide: {
|
||||
'@version': [1],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
placeholder: 'Add Condition',
|
||||
@@ -999,11 +1005,13 @@ export function getSearchFilters(resource: string) {
|
||||
type: 'notice',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2],
|
||||
resource: [resource],
|
||||
operation: ['getAll'],
|
||||
filterType: ['json'],
|
||||
},
|
||||
hide: {
|
||||
'@version': [1],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
@@ -1013,11 +1021,13 @@ export function getSearchFilters(resource: string) {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2],
|
||||
resource: [resource],
|
||||
operation: ['getAll'],
|
||||
filterType: ['json'],
|
||||
},
|
||||
hide: {
|
||||
'@version': [1],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user