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

12 lines
197 B
JavaScript
Raw Normal View History

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