fix: crop rect invalid bounds crash (#2494)

# Summary

Do not crash on `getCropRect` call when renderableBounds is null

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| Android |          |
This commit is contained in:
Jakub Grzywacz
2024-10-17 11:34:37 +02:00
committed by GitHub
parent 93df20ca3f
commit 16baf27a50
2 changed files with 4 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class BasicFlood extends Component {
floodOpacity="0.5"
/>
</Filter>
<Use href="url(#useless)" filter="url(#floodFilter)" />
<Rect x="0" y="0" width="1" height="1" filter="url(#floodFilter)" />
</Svg>
);
}