From 3d8fc116a7b6493316dde95148f0cd680d10ffc5 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 14 Mar 2018 11:32:13 +0100 Subject: [PATCH] Fix defaultComponent bug --- client/coral-framework/hocs/withSlotElements.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/coral-framework/hocs/withSlotElements.js b/client/coral-framework/hocs/withSlotElements.js index e02a9d5a7..a4b39c907 100644 --- a/client/coral-framework/hocs/withSlotElements.js +++ b/client/coral-framework/hocs/withSlotElements.js @@ -105,7 +105,10 @@ const createHOC = ({ const { plugins } = this.context; const slots = this.getSlots(props); const sizes = this.getSizes(props, slots.length); - const defaultComponents = this.getSizes(props, slots.length); + const defaultComponents = this.getDefaultComponents( + props, + slots.length + ); const slotPassthrough = this.getPassthrough(props); if (process.env.NODE_ENV !== 'production') {