-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed build console warnings (threshold-management/#69) #71
Fixed build console warnings (threshold-management/#69) #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will not push the package-lock.json file until we do not make any change in the package.json file.
Reopen, |
Ok, sir I'll not push it from next time |
586a149
to
b0fa793
Compare
src/store/modules/user/actions.ts
Outdated
commit(types.USER_INSTANCE_URL_UPDATED, payload) | ||
}, | ||
|
||
async getEComStores({ commit }, payload) { | ||
async getEComStores(payload) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will cause abrupt behaviour of this action. If we are not doing anything related to state we should rather create service
src/store/modules/user/actions.ts
Outdated
resp.data.stores = stores ? stores : []; | ||
commit(types.USER_CURRENT_ECOM_STORE_UPDATED, stores ? stores[0] : {}); | ||
}); | ||
const newresp = await UserService.getEComStores(payload); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve variable name
https://google.github.io/styleguide/jsguide.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improved sir Please have a look
Removed Unwanted Definitions and Assignments
Definitions
img.onerror = function (error)
import { translate } from "@/i18n";
setUserInstanceUrl ({ state, commit }, payload){
async getEComStores({ commit }, payload) {
async setEComStore({ commit, dispatch }, payload) {
import { IonBackButton, IonButton, IonContent, IonHeader,IonIcon, IonItem, IonLabel, IonMenuButton, IonPage, IonSelect, IonSelectOption, IonTitle, IonToolbar, popoverController } from '@ionic/vue';
import emitter from '@/event-bus';
Assignments
const cachedEnum = payload.map((id: any) => state.enumIds[id]);
const cachedTempExpr = tempExprIds.map((id: any) => state.temporalExp[id]);