File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import isObject from 'lodash/isObject ' ;
1+ import isPlainObject from 'lodash/isPlainObject ' ;
22import { sliceProperties } from 'utils/slicing' ;
33import { PLAYER_EVENT } from 'utils/consts' ;
44import { getCloudinaryUrl } from 'plugins/cloudinary/common' ;
@@ -22,7 +22,7 @@ const playlist = (player, options = {}) => {
2222 playlistWidget . dispose ( ) ;
2323 }
2424
25- if ( isObject ( options . playlistWidget ) ) {
25+ if ( isPlainObject ( options . playlistWidget ) ) {
2626 if ( player . fluid_ ) {
2727 options . playlistWidget . fluid = true ;
2828 }
Original file line number Diff line number Diff line change 11import camelCase from 'lodash/camelCase' ;
2- import isObject from 'lodash/isObject ' ;
2+ import isPlainObject from 'lodash/isPlainObject ' ;
33import { parseISO8601 } from './time' ;
44
55const TIME_FIELDS = [ 'created_at' , 'updated_at' ] ;
66
77const normalizeJsonResponse = ( obj ) => {
88 const agg = { } ;
99
10- if ( isObject ( obj ) ) {
10+ if ( isPlainObject ( obj ) ) {
1111 Object . keys ( obj ) . reduce ( ( agg , key ) => {
1212 const newKey = camelCase ( key ) ;
1313
You can’t perform that action at this time.
0 commit comments