Fix small props parsing bug for filter (#44637)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44637

Setting the wrong thing to {}. `result` should be set here just like in the other early returns.

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D57617046

fbshipit-source-id: e47dbdb7821879ffa02d11b7e68eec1c9bfbdefd
This commit is contained in:
Joe Vilches
2024-05-21 14:04:01 -07:00
committed by Facebook GitHub Bot
parent 644facd19d
commit ed3f2f40e1
@@ -833,7 +833,7 @@ inline void fromRawValue(
filter.push_back(filterPrimitive);
} catch (const std::exception& e) {
LOG(ERROR) << "Could not parse FilterPrimitive: " << e.what();
filter = {};
result = {};
return;
}
}