fix(editor): Restore expression completions (#6566)

This commit is contained in:
Iván Ovejero 2023-07-04 22:02:51 +02:00 committed by GitHub
parent 075fd02bd6
commit 516e5728f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;