debian-mirror-gitlab/spec/frontend/notes/helpers.js

13 lines
252 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
// eslint-disable-next-line import/prefer-default-export
export const resetStore = store => {
store.replaceState({
notes: [],
targetNoteHash: null,
lastFetchedAt: null,
notesData: {},
userData: {},
noteableData: {},
});
};