Update src/rest-api-filters/index.js

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
This commit is contained in:
Moon 2022-04-15 06:53:12 -07:00 committed by GitHub
parent 9aaf994638
commit 941b068cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,12 @@ function RestAPIFilters( {
return filters.map( ( filter, index ) => { return filters.map( ( filter, index ) => {
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
const { endpoint, dot_notation, replacement, enabled } = filter; const {
endpoint,
dot_notation: dotNotation,
replacement,
enabled,
} = filter;
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
const dotNotation = dot_notation; const dotNotation = dot_notation;