[fix] indicator not updating (#1696)

This PR fixes the indicator bug
(https://github.com/orgs/tldraw/projects/16/views/1?pane=issue&itemId=32402403).

### Change Type

- [x] `patch` — Bug fix
This commit is contained in:
Steve Ruiz 2023-07-04 11:06:45 +01:00 committed by GitHub
parent b5edaeb950
commit 5174d3f466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ import { OptionalErrorBoundary } from './ErrorBoundary'
class ShapeWithPropsEquality {
constructor(public shape: TLShape | undefined) {}
equals(other: ShapeWithPropsEquality) {
return this.shape?.props === other?.shape?.props || this.shape?.meta === other?.shape?.meta
return this.shape?.props === other?.shape?.props && this.shape?.meta === other?.shape?.meta
}
}