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

12 lines
195 B
JavaScript
Raw Normal View History

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