mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix(editor): Restore expression completions (#6566)
This commit is contained in:
parent
075fd02bd6
commit
516e5728f7
|
@ -98,11 +98,21 @@ export const isAllowedInDotNotation = (str: string) => {
|
|||
// ----------------------------------
|
||||
|
||||
export function receivesNoBinaryData() {
|
||||
try {
|
||||
return resolveParameter('={{ $binary }}')?.data === undefined;
|
||||
} catch {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
export function hasNoParams(toResolve: string) {
|
||||
const params = resolveParameter(`={{ ${toResolve}.params }}`);
|
||||
let params;
|
||||
|
||||
try {
|
||||
params = resolveParameter(`={{ ${toResolve}.params }}`);
|
||||
} catch {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!params) return true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue