Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit ca52256

Browse files
Fix type in function name
1 parent 7c2cf9b commit ca52256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/attribute/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function setAttributeInCache (attributeList, config) {
7676
* @param attribute - attribute object
7777
* @param optionsIds - list of only needed options ids
7878
*/
79-
function clearAttributeOpitons (attribute, optionsIds: number[]) {
79+
function clearAttributeOptions (attribute, optionsIds: number[]) {
8080
const stringOptionsIds = optionsIds.map(String)
8181
return {
8282
...attribute,
@@ -102,7 +102,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
102102
attributeCodes.splice(index, 1)
103103

104104
// clear unused options
105-
return clearAttributeOpitons(cachedAttribute, attributeOptionsIds)
105+
return clearAttributeOptions(cachedAttribute, attributeOptionsIds)
106106
}
107107
})
108108
// remove empty results from cache.get
@@ -134,7 +134,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
134134
const attributeOptionsIds = attributesParam[fetchedAttribute.attribute_code]
135135

136136
// clear unused options
137-
return clearAttributeOpitons(fetchedAttribute, attributeOptionsIds)
137+
return clearAttributeOptions(fetchedAttribute, attributeOptionsIds)
138138
})
139139
]
140140

0 commit comments

Comments
 (0)