debian-mirror-gitlab/spec/frontend/notes/helpers.js
2020-04-08 18:37:08 +05:30

12 lines
252 B
JavaScript

// eslint-disable-next-line import/prefer-default-export
export const resetStore = store => {
store.replaceState({
notes: [],
targetNoteHash: null,
lastFetchedAt: null,
notesData: {},
userData: {},
noteableData: {},
});
};