Closed victorlin closed 3 weeks ago
This doesn't affect /pathogens which is the only place where this component is used (as of now). It may affect work on https://github.com/nextstrain/nextstrain.org/issues/870 that uses unversioned resources.
the :bug: is visible on https://next.nextstrain.org/staging
@jameshadfield oh I didn't realize ListResources was being used on staging with versioned=false, thanks!
Current Behavior
When setting
versioned=false
on ListResources, the resources entries are truncated.Expected behavior
Resource entries should not be truncated.
How to reproduce
Scope
This was introduced in 54be4d60c17e62d236ad95d10aff3895ca0a4553.
This affects
/staging
but not/pathogens
. It may also affect work on #870 that uses unversioned resources.Possible solution
Fix the condition here to not return
w
on lack ofupdateCadence
:https://github.com/nextstrain/nextstrain.org/blob/2e4844e6472ef4c1cf3aebf366fd6901758f64c1/static-site/src/components/ListResources/IndividualResource.tsx#L22-L34