This commit is contained in:
Neil MacDougall 2021-07-09 16:07:52 +01:00
parent d06d3af682
commit cb498f9944
1 changed files with 4 additions and 0 deletions

View File

@ -416,6 +416,10 @@ export const getters = {
};
return (schemaOrType) => {
if (!schemaOrType) {
return {};
}
const type = (typeof schemaOrType === 'object' ? schemaOrType.id : schemaOrType);
const found = state.typeOptions.find((entry) => {
const re = stringToRegex(entry.match);