fix validate path call (warning) & playground dom: Fix namespace warning
This commit is contained in:
parent
efc33d4989
commit
63056c5a58
2 changed files with 2 additions and 4 deletions
|
@ -7,8 +7,6 @@ import {onChange, types} from '@theatre/core'
|
|||
import type {IScrub, IStudio} from '@theatre/studio'
|
||||
import type {ShorthandCompoundPropsToInitialValue} from '@theatre/core/propTypes/internals'
|
||||
|
||||
studio.initialize({usePersistentStorage: false})
|
||||
|
||||
const textInterpolate = (left: string, right: string, progression: number) => {
|
||||
if (!left || right.startsWith(left)) {
|
||||
const length = Math.floor(
|
||||
|
@ -223,7 +221,7 @@ export const Scene: React.FC<{project: IProject}> = ({project}) => {
|
|||
{boxes.map((id) => (
|
||||
<Box
|
||||
key={'box' + id}
|
||||
id={`Boxes/${id}`}
|
||||
id={`Box / ${id}`}
|
||||
sheet={sheet}
|
||||
selection={selection ?? []}
|
||||
/>
|
||||
|
|
|
@ -99,7 +99,7 @@ export default class TheatreSheet implements ISheet {
|
|||
const internal = privateAPI(this)
|
||||
const sanitizedPath = validateAndSanitiseSlashedPathOrThrow(
|
||||
key,
|
||||
`sheet.object("${key}", ...)`,
|
||||
`sheet.object`,
|
||||
)
|
||||
|
||||
const existingObject = internal.getObject(sanitizedPath as ObjectAddressKey)
|
||||
|
|
Loading…
Reference in a new issue