debian-mirror-gitlab/spec/frontend/notes/helpers.js
2021-03-08 18:12:59 +05:30

11 lines
197 B
JavaScript

export const resetStore = (store) => {
store.replaceState({
notes: [],
targetNoteHash: null,
lastFetchedAt: null,
notesData: {},
userData: {},
noteableData: {},
});
};