Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ import { isMenuItemSupportedSupported } from '@mapstore/framework/utils/Resource

/**
* This renders a configurable input filters for documents catalog
* @class
* @name DocumentsFiltersForm
* @prop {object[]} cfg.fields array of filter object configurations
* @example
* @prop {object[]} props.fields array of filter object configurations

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better JSDoc accuracy and clarity, it's best to refer to the prop by its actual name as expected by the component. Since the prop is named fields, the documentation should reflect that instead of props.fields.

Suggested change
* @prop {object[]} props.fields array of filter object configurations
* @prop {object[]} fields array of filter object configurations

* @private
*/
function DocumentsFiltersForm({
id = 'ms-filter-form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const mergeParams = (params, defaultQuery) => {
* @param {func} props.request function returning the resources request
* @param {object} props.defaultQuery default query object always applied to the requests
* @param {number} props.pageSize page size for the request
* @private
*/

const useQueryResourcesByParams = ({
Expand Down