Skip to content

Commit b04a681

Browse files
committed
Legg til dep array verdi, gjør path valgfri
1 parent e5c0155 commit b04a681

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/_common/qbrick-video/useQbrickPlayerState.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ export const useQbrickPlayerState = ({
3636
}
3737

3838
createAndStart(videoProps, videoContainer, widgetId, setPlayerState, context, innholdstype);
39-
}, [videoProps, videoContainerId, widgetId, playerState, setPlayerState, context]);
39+
}, [
40+
videoProps,
41+
videoContainerId,
42+
widgetId,
43+
playerState,
44+
setPlayerState,
45+
context,
46+
innholdstype,
47+
]);
4048

4149
const resetPlayer = useCallback(() => {
4250
setPlayerState('stopped');

src/components/_common/user-tests/UserTests.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type UserTestsComponentProps = {
1111
data: UserTestsConfigData;
1212
};
1313
selectedTestIds: string[];
14-
_path: string;
14+
_path?: string;
1515
};
1616

1717
export const UserTests = (props: UserTestsComponentProps) => {

0 commit comments

Comments
 (0)