Merge pull request #457 from mchangrh/highlight_poi

force poi_highlight to be type POI
This commit is contained in:
Ajay Ramachandran 2022-02-13 16:40:20 -05:00 committed by GitHub
commit 50d8c5f105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,7 @@ type validLockArray = { category: Category, actionType: ActionType }[];
const createLockArray = (categories: Category[], actionTypes: ActionType[]): validLockArray => {
const validLocks: validLockArray = [];
categories.forEach(category => {
if (category === "poi_highlight") validLocks.push({ category, actionType: ActionType.Poi });
actionTypes.forEach(actionType => {
if (isValidCategoryActionPair(category, actionType)) {
validLocks.push({ category, actionType });