debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js
2020-08-09 17:44:08 +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,
};
};