pnp / pnp/sp-dev-fx-controls-react

[DynamicForm] Issue when loading data from TaxonomyFieldTypeMulti, `results` sub-array appears randomly

Open
#1,759 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Needs: Attention :wave: type:bug
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.17.0]

Expected / Desired Behavior / Question

DynamicForm control should handle multi taxonomy fields correctly.

Observed Behavior

Raised in #1568, #1717 & #1733

When refering to a list which contains a multi taxonomy field, there are cases when the field data contains a sub-array called results with terms inside, instead of them directly exposed. Below screens of different behaviors:

image

image

A PR has been proposed #1744 but further investigation needs to be done in order to understand why this sub-array is returned.

Steps to Reproduce

Unable to reproduce at the moment.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DynamicForm handling for multi taxonomy fields and compare the two reported data shapes: terms directly exposed versus nested under a results array. Review issues #1568, #1717, and #1733, then examine proposed PR #1744; the work is done when the cause is understood and DynamicForm consistently handles the field data.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.