[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
pull/1703/head
Steve Ruiz 2023-07-04 11:06:45 +01:00 zatwierdzone przez GitHub
rodzic b5edaeb950
commit 5174d3f466
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
}
}