Skip to content

Commit ab1e014

Browse files
committed
fix(scriptProperties): improve condition for property type check
Class ScriptProperties#filterPropertiesByParts(): ~modified condition for resultType comparison (enhances clarity)
1 parent 5c32268 commit ab1e014

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/scripts/src/scripts/scriptProperties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ export class ScriptProperties {
10741074
const fullyMatched: boolean[] = [];
10751075
const props = propertiesPrevious.length > 0 ? propertiesPrevious : contentType.getProperties(directOnly).values();
10761076
for (const prop of props) {
1077-
if (resultType === 'undefined' || resultType === prop.type || !prop.type) {
1077+
if (!(resultType === 'undefined' || prop.type === undefined || resultType === prop.type)) {
10781078
continue;
10791079
}
10801080
const name = prop.name;

0 commit comments

Comments
 (0)