Skip to content

Commit abf6243

Browse files
committed
chore: change the filter function to the find function
1 parent a0df80e commit abf6243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webgal/src/Core/util/evalSentenceFn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const EvaluateExpression = (val: string, options: EvaluateExpressionOptio
4747
getArg(key: string) {
4848
const target = sceneArguments[sceneUrl];
4949
if (target) {
50-
return target.filter((item) => item.key === key)[0]?.value ?? null;
50+
return target.find((item) => item.key === key)?.value ?? null;
5151
}
5252
return null;
5353
},

0 commit comments

Comments
 (0)