Fixed: Correctly use loadash in FE Migrations

Fixes #7314
pull/7321/head
Qstick 2 years ago
parent a9627771e6
commit 5dc541c69e

@ -1,8 +1,8 @@
import get from 'lodash';
import _ from 'lodash';
export default function migrateMonitorToEnum(persistedState) {
const addMovie = get(persistedState, 'addMovie.defaults.monitor');
const discoverMovie = get(persistedState, 'discoverMovie.defaults.monitor');
const addMovie = _.get(persistedState, 'addMovie.defaults.monitor');
const discoverMovie = _.get(persistedState, 'discoverMovie.defaults.monitor');
if (addMovie) {
if (addMovie === 'true') {

@ -1,8 +1,8 @@
import get from 'lodash';
import _ from 'lodash';
export default function migratePreDbToReleased(persistedState) {
const addMovie = get(persistedState, 'addMovie.defaults.minimumAvailability');
const discoverMovie = get(persistedState, 'discoverMovie.defaults.minimumAvailability');
const addMovie = _.get(persistedState, 'addMovie.defaults.minimumAvailability');
const discoverMovie = _.get(persistedState, 'discoverMovie.defaults.minimumAvailability');
if (!addMovie && !discoverMovie) {
return;

Loading…
Cancel
Save