-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Check if plugin is array before accessing first index #321
Conversation
Size Change: 0 B Total Size: 4.01 MB ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 27f9c75): https://docusaurus-openapi-36b86--pr321-tav7oasb.web.app (expires Sat, 03 Dec 2022 21:17:41 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Reviewed the error output in #315 and concluded that all expected cases should be covered:
|
Description
This change checks that the plugin is defined as an
Array
before attempting to access the first index.See #315 for background
Valid plugin config variations: