Fix: Fixed the regression from last commit
This commit is contained in:
parent
2a671b129d
commit
d1b2787809
2 changed files with 6 additions and 7 deletions
|
@ -22,9 +22,8 @@ describe(`SheetObjectTemplate`, () => {
|
||||||
obj: {
|
obj: {
|
||||||
trackIdByPropPath: {
|
trackIdByPropPath: {
|
||||||
[encodePathToProp(['position', 'x'])]: asSequenceTrackId('x'),
|
[encodePathToProp(['position', 'x'])]: asSequenceTrackId('x'),
|
||||||
[encodePathToProp(['position', 'invalid'])]: asSequenceTrackId(
|
[encodePathToProp(['position', 'invalid'])]:
|
||||||
'invalidTrack',
|
asSequenceTrackId('invalidTrack'),
|
||||||
),
|
|
||||||
},
|
},
|
||||||
trackData: {
|
trackData: {
|
||||||
x: null as $IntentionalAny,
|
x: null as $IntentionalAny,
|
||||||
|
@ -78,9 +77,8 @@ describe(`SheetObjectTemplate`, () => {
|
||||||
obj: {
|
obj: {
|
||||||
trackIdByPropPath: {
|
trackIdByPropPath: {
|
||||||
[encodePathToProp(['position', 'x'])]: asSequenceTrackId('x'),
|
[encodePathToProp(['position', 'x'])]: asSequenceTrackId('x'),
|
||||||
[encodePathToProp(['position', 'invalid'])]: asSequenceTrackId(
|
[encodePathToProp(['position', 'invalid'])]:
|
||||||
'invalidTrack',
|
asSequenceTrackId('invalidTrack'),
|
||||||
),
|
|
||||||
},
|
},
|
||||||
trackData: {
|
trackData: {
|
||||||
x: null as $IntentionalAny,
|
x: null as $IntentionalAny,
|
||||||
|
@ -91,6 +89,7 @@ describe(`SheetObjectTemplate`, () => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
debugger
|
||||||
const iter = iterateOver(
|
const iter = iterateOver(
|
||||||
obj.template.getMapOfValidSequenceTracks_forStudio(),
|
obj.template.getMapOfValidSequenceTracks_forStudio(),
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,7 +19,7 @@ const cachedDefaults = new WeakMap<PropTypeConfig, SerializableValue>()
|
||||||
export default function getPropDefaultsOfSheetObject(
|
export default function getPropDefaultsOfSheetObject(
|
||||||
config: SheetObjectConfig<$IntentionalAny>,
|
config: SheetObjectConfig<$IntentionalAny>,
|
||||||
): SerializableMap {
|
): SerializableMap {
|
||||||
return getDefaultsOfPropTypeConfig(config.props) as $IntentionalAny
|
return getDefaultsOfPropTypeConfig(config) as $IntentionalAny
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultsOfPropTypeConfig(
|
function getDefaultsOfPropTypeConfig(
|
||||||
|
|
Loading…
Reference in a new issue