Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return [...currentIncludes].sort().map((include) => {
if (include === 'teamMembers') {
return humanize(underscore(pluralize(
data.event.event_category.team_member_name,
)));
}
return humanize(underscore(include));
}).join(', ');
}}
var factoryFn = function (target, propKey) {
if (optsOrType === undefined) {
var inferredType = pluralize(underscore(propKey));
opts = {
jsonapiType: inferredType
};
}
else if (typeof optsOrType === "string") {
opts = {
jsonapiType: optsOrType
};
}
else if (isModelClass(optsOrType)) {
opts = {
type: optsOrType
};
}
else {
opts = {
export function dasherize(word) {
return _dasherize(underscore(word));
}
keyForAttribute: function (key) {
return Inflector.underscore(key);
},
typeForAttribute: function (attr) {
JSORMBase.serializeKey = function (key) {
switch (this.keyCase.server) {
case "dash": {
return dasherize(underscore(key));
}
case "snake": {
return underscore(key);
}
case "camel": {
return camelize(underscore(key), false);
}
}
};
JSORMBase.deserializeKey = function (key) {
memberPath(id) {
let resources = Inflector.pluralize(Inflector.underscore(this.resourceName))
return this._.pathPrefix(this.shallow) + resources + '/' + id
}
awaitRefetchQueries: true,
});
history.replace(`${eventPath}/team_members`);
};
return (
<>
<h1>
{'Add '}
{titleize(underscore(event.event_category.team_member_name))}
</h1>
<div>
<label>
{`${humanize(underscore(event.event_category.team_member_name))}`}
{' '}
to add
</label>
</div>
{
teamMember.user_con_profile
? (
collectionPath() {
let resources = Inflector.pluralize(Inflector.underscore(this.resourceName))
return this._.pathPrefix() + resources
}