@momo-kits/swipe 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Swiper.js +1 -1
- package/package.json +1 -1
package/Swiper.js
CHANGED
|
@@ -577,7 +577,7 @@ export default class Swiper extends Component {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
renderTitle = () => {
|
|
580
|
-
const child = this?.props?.children[this?.state?.index] || {};
|
|
580
|
+
const child = this?.props?.children?.[this?.state?.index] || {};
|
|
581
581
|
const title = child?.props?.title || '';
|
|
582
582
|
if(title) return null;
|
|
583
583
|
return title
|