single equal sign

This commit is contained in:
Niels Lyngsø
2024-08-13 11:40:51 +02:00
parent d763f804c8
commit b9cc0d73d3

View File

@@ -14,10 +14,10 @@ export function UmbDataPathPropertyValueFilter(
// write a array of strings for each property, where alias must be present and culture and segment are optional
const filters: Array<string> = [`@.alias = '${value.alias}'`];
if (value.culture) {
filters.push(`@.culture == '${value.culture}'`);
filters.push(`@.culture = '${value.culture}'`);
}
if (value.segment) {
filters.push(`@.segment == '${value.segment}'`);
filters.push(`@.segment = '${value.segment}'`);
}
return `?(${filters.join(' && ')})`;
}