Skip to content
Snippets Groups Projects
Commit 5cc9a7f4 authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: fixed param source for transform update

parent b45f9d21
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,6 @@ export class CurrentObject extends PluginComponent {
render() {
const current = this.current;
const ref = current.ref;
const cell = current.state.cells.get(ref)!;
const parent: StateObjectCell | undefined = (cell.sourceRef && current.state.cells.get(cell.sourceRef)!) || void 0;
......
......@@ -51,9 +51,10 @@ class UpdateTransformContol extends TransformContolBase<UpdateTransformContol.Pr
static getDerivedStateFromProps(props: UpdateTransformContol.Props, state: UpdateTransformContol.ComponentState) {
if (props.transform === state.transform) return null;
const cell = props.state.cells.get(props.transform.ref)!;
const newState: Partial<UpdateTransformContol.ComponentState> = {
transform: props.transform,
params: props.transform.params,
params: (cell.params && cell.params.values) || { },
isInitial: true,
error: void 0
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment