Skip to content

Commit 5e547ce

Browse files
committed
fix: read the SourceLayerType into UserEditingDefinition
1 parent 3a5bda0 commit 5e547ce

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/blueprints-integration/src/userEditing.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export interface UserEditingDefinitionSourceLayerForm {
5858
/** The json schemas describing the form to display */
5959
schemas: Record<string, UserEditingSourceLayer>
6060
/** Current values to populate the form with */
61-
currentValues: Record<string, any>
61+
currentValues: {
62+
type: SourceLayerType
63+
value: Record<string, any>
64+
}
6265
}
6366

6467
export enum UserEditingType {

packages/corelib/src/dataModel/UserEditingDefinitions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {
44
JSONSchema,
55
UserEditingSourceLayer,
66
UserEditingButtonType,
7+
SourceLayerType,
78
} from '@sofie-automation/blueprints-integration'
89
import type { ITranslatableMessage } from '../TranslatableMessage'
910

@@ -60,5 +61,8 @@ export interface CoreUserEditingDefinitionSourceLayerForm {
6061
/** Translation namespaces to use when rendering this form */
6162
translationNamespaces: string[]
6263
/** Current values to populate the form with */
63-
currentValues: Record<string, any>
64+
currentValues: {
65+
type: SourceLayerType
66+
value: Record<string, any>
67+
}
6468
}

0 commit comments

Comments
 (0)