debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js

10 lines
228 B
JavaScript
Raw Normal View History

2020-07-28 23:09:34 +05:30
export default ({ adminState = null, customState = {} } = {}) => {
const override = adminState !== null ? adminState.id !== customState.inheritFromId : false;
return {
override,
adminState,
customState,
};
};