Skip to content

Commit

Permalink
fix: replace clone in charge of merge (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniy authored Apr 29, 2022
1 parent 7db323d commit 09abbac
Show file tree
Hide file tree
Showing 3 changed files with 13,391 additions and 13,859 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"dependencies": {
"fix-webm-duration": "^1.0.4",
"lodash.clonedeep": "^4.5.0",
"lodash.merge": "^4.5.0",
"react-svg-inline": "^2.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/video-recorder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import cloneDeep from 'lodash.clonedeep'
import merge from 'lodash.merge'
import styled, { css } from 'styled-components'
import fixWebmDuration from 'fix-webm-duration'

Expand Down Expand Up @@ -255,7 +255,7 @@ export default class VideoRecorder extends Component {
video: true
}

const currentConstraints = cloneDeep(
const currentConstraints = merge(
{
video: {
deviceId: {
Expand Down
Loading

1 comment on commit 09abbac

@vercel
Copy link

@vercel vercel bot commented on 09abbac Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.