debian-mirror-gitlab/spec/javascripts/notes/helpers.js
2018-03-27 19:54:05 +05:30

12 lines
254 B
JavaScript

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