debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js
2020-08-09 17:41:57 +05:30

9 lines
228 B
JavaScript

export default ({ adminState = null, customState = {} } = {}) => {
const override = adminState !== null ? adminState.id !== customState.inheritFromId : false;
return {
override,
adminState,
customState,
};
};