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

13 lines
252 B
JavaScript
Raw Normal View History

2018-03-27 19:54:05 +05:30
// eslint-disable-next-line import/prefer-default-export
2018-12-13 13:39:08 +05:30
export const resetStore = store => {
2018-03-27 19:54:05 +05:30
store.replaceState({
notes: [],
targetNoteHash: null,
lastFetchedAt: null,
notesData: {},
userData: {},
noteableData: {},
});
};