20 lines
346 B
JavaScript
20 lines
346 B
JavaScript
const createRefTypeState = () => ({
|
|
list: [],
|
|
totalCount: 0,
|
|
error: null,
|
|
});
|
|
|
|
export default () => ({
|
|
enabledRefTypes: [],
|
|
projectId: null,
|
|
|
|
query: '',
|
|
matches: {
|
|
branches: createRefTypeState(),
|
|
tags: createRefTypeState(),
|
|
commits: createRefTypeState(),
|
|
},
|
|
selectedRef: null,
|
|
params: null,
|
|
requestCount: 0,
|
|
});
|