Normalize theatre keys in r3f (#317)
Also remove a stray console log and make makeStoreKey make more sense.
This commit is contained in:
parent
54ed4c3c41
commit
29e036638b
4 changed files with 21 additions and 33 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue