Skip to content

fix(NcRichText): references prop type#6799

Merged
susnux merged 1 commit into
mainfrom
fix/noid/ncrichtext-references-prop-type
Apr 17, 2025
Merged

fix(NcRichText): references prop type#6799
susnux merged 1 commit into
mainfrom
fix/noid/ncrichtext-references-prop-type

Conversation

@julien-nc
Copy link
Copy Markdown
Contributor

The references prop is passed to NcReferenceList and is processed as a list, not an object. This prevents Vue warnings and fixes the docs.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

…bject

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc added bug Something isn't working 3. to review Waiting for reviews feature: richtext Related to the richtext component labels Apr 17, 2025
@julien-nc julien-nc added this to the 9.0.0 milestone Apr 17, 2025
@julien-nc
Copy link
Copy Markdown
Contributor Author

/backport to stable8

@ShGKme ShGKme changed the title Fix the NcRichText 'references' prop type fix(NcRichText): references prop type Apr 17, 2025
referenceData: {
type: Object,
type: Array,
default: null,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How can it be null but type Array? (null is object)
Should the default not be rather () => [] (empty array?) or undefined?

@susnux susnux merged commit a4f3011 into main Apr 17, 2025
29 checks passed
@susnux susnux deleted the fix/noid/ncrichtext-references-prop-type branch April 17, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: richtext Related to the richtext component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants