From 68895079fbce95ce5bd2067eb00eb2918cdfcef9 Mon Sep 17 00:00:00 2001 From: Matt Suhay Date: Fri, 26 Oct 2018 14:00:43 -0500 Subject: [PATCH] improvement(widget-list): use singular label if available (#1793) --- packages/netlify-cms-widget-list/src/ListControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-widget-list/src/ListControl.js b/packages/netlify-cms-widget-list/src/ListControl.js index e82278cc..696e8384 100644 --- a/packages/netlify-cms-widget-list/src/ListControl.js +++ b/packages/netlify-cms-widget-list/src/ListControl.js @@ -277,7 +277,7 @@ export default class ListControl extends React.Component { allowAdd={field.get('allow_add', true)} onAdd={this.handleAdd} heading={`${items.size} ${listLabel}`} - label={listLabel} + label={labelSingular.toLowerCase()} onCollapseToggle={this.handleCollapseAllToggle} collapsed={itemsCollapsed.every(val => val === true)} />