Normalize theatre keys in r3f (#317)

Also remove a stray console log and make makeStoreKey make more sense.
This commit is contained in:
Andrew Prifer 2022-10-16 18:02:35 +02:00 committed by GitHub
parent 54ed4c3c41
commit 29e036638b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 33 deletions

View file

@ -22,7 +22,7 @@ export function useSelected(): undefined | string {
if (!item) {
set(undefined)
} else {
set(makeStoreKey(item.sheet, item.address.objectKey))
set(makeStoreKey(item.address))
}
}
setFromStudio(studio.selection)
@ -41,6 +41,6 @@ export function getSelected(): undefined | string {
if (!item) {
return undefined
} else {
return makeStoreKey(item.sheet, item.address.objectKey)
return makeStoreKey(item.address)
}
}