Skip to content

Commit e43cb2f

Browse files
authored
fix: FIT-263: Audio region start and end editor inputs not updating on change (#7829) (#7842)
1 parent 3904b7b commit e43cb2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/libs/editor/src/components/SidePanels/DetailsPanel/RegionEditor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { FF_DEV_2715, isFF } from "../../../utils/feature-flags";
1919
import { TimeDurationControl } from "../../TimeDurationControl/TimeDurationControl";
2020
import { TimelineRegionEditor } from "./TimelineRegionEditor";
2121
import "./RegionEditor.scss";
22+
import type { MSTRegion } from "../../../stores/types";
2223

2324
interface RegionEditorProps {
2425
region: MSTRegion;
@@ -83,7 +84,7 @@ const RegionProperties = ({ region }: RegionEditorProps) => {
8384
);
8485
};
8586

86-
const AudioRegionProperties = ({ region }: { region: any }) => {
87+
const AudioRegionProperties = observer(({ region }: { region: any }) => {
8788
const changeStartTimeHandler = (value: number) => {
8889
region.setProperty("start", value);
8990
};
@@ -107,7 +108,7 @@ const AudioRegionProperties = ({ region }: { region: any }) => {
107108
/>
108109
</Elem>
109110
);
110-
};
111+
});
111112

112113
interface RegionPropertyProps {
113114
property: string;

0 commit comments

Comments
 (0)