Skip to content

Commit

Permalink
fix lodash import get.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Apr 23, 2024
1 parent 200f239 commit df85cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/configuration-store.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineStore } from 'pinia';
import { setCssVar } from 'quasar';
import { Notify } from 'quasar';
import _ = require('lodash');
import { get } from 'lodash';
//https://stackoverflow.com/a/75060220

const STATES = {
Expand Down Expand Up @@ -139,6 +139,6 @@ export const useConfigurationStore = defineStore('configuration-store', {
(state) =>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(path: string, defaultValue?: any) =>
_.get(state.configuration, path, defaultValue),
get(state.configuration, path, defaultValue),
},
});

0 comments on commit df85cca

Please sign in to comment.