made IndexSettingsModal more modular.
This commit is contained in:
@@ -5,7 +5,6 @@ import axios from '@/axios'
|
||||
import _cloneDeep from 'lodash/cloneDeep'
|
||||
|
||||
const user = useUser()
|
||||
const settings = settingsEmployeesIndex()
|
||||
|
||||
export const useEmployees = defineStore('employees', {
|
||||
state: () => {
|
||||
@@ -59,7 +58,6 @@ export const useEmployees = defineStore('employees', {
|
||||
this.rows = _cloneDeep(data.data)
|
||||
|
||||
this.columns = this.fetchColumns()
|
||||
await settings.fetchFromApi()
|
||||
}
|
||||
catch(err) {
|
||||
console.log(err)
|
||||
|
||||
Reference in New Issue
Block a user