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