Skip to content
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

Merged
merged 3 commits into from
May 24, 2022

Conversation

rathoreprashant
Copy link
Contributor

@rathoreprashant rathoreprashant commented May 10, 2022

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]);

Copy link
Contributor

@ymaheshwari1 ymaheshwari1 left a 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.

@rathoreprashant
Copy link
Contributor Author

Reopen,
By mistake, I closed this PR.

@rathoreprashant
Copy link
Contributor Author

Ok, sir I'll not push it from next time

@rathoreprashant rathoreprashant force-pushed the threshold-management/#69 branch from 586a149 to b0fa793 Compare May 11, 2022 07:07
commit(types.USER_INSTANCE_URL_UPDATED, payload)
},

async getEComStores({ commit }, payload) {
async getEComStores(payload) {
Copy link
Contributor

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

resp.data.stores = stores ? stores : [];
commit(types.USER_CURRENT_ECOM_STORE_UPDATED, stores ? stores[0] : {});
});
const newresp = await UserService.getEComStores(payload);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

@adityasharma7 adityasharma7 merged commit 969df3b into hotwax:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants