diff --git a/README.md b/README.md index 20ad1189..f49fb1c4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ [![npm](https://img.shields.io/npm/v/react-json-view.svg)](https://www.npmjs.com/package/react-json-view) [![npm](https://img.shields.io/npm/l/react-json-view.svg)](https://github.com/mac-s-g/react-json-view/blob/master/LISCENSE) [![Build Status](https://travis-ci.org/mac-s-g/react-json-view.svg)](https://travis-ci.org/mac-s-g/react-json-view) [![Coverage Status](https://coveralls.io/repos/github/mac-s-g/react-json-view/badge.svg?branch=master)](https://coveralls.io/github/mac-s-g/react-json-view?branch=master) +### ⚠️ This project is no longer being maintained ⚠️ +Sorry for the silence, ya'll. I'm no longer able to invest the time necessary to keep this project maintained. It's been a great experience working with everyone. +based on recent discussion, it looks like [@microlink/react-json-view](https://github.com/microlinkhq/react-json-view) is a good candidate for replacement. +Thank you to RJV users and everyone who contributed to this project. ❤️ + # react-json-view RJV is a React component for displaying and editing javascript **arrays** and **JSON objects**. diff --git a/package.json b/package.json index 29af99d3..36d66aad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-json-view", "description": "Interactive react component for displaying javascript arrays and JSON objects.", - "version": "1.21.2", + "version": "1.21.3", "main": "dist/main.js", "dependencies": { "flux": "^4.0.1", diff --git a/src/js/components/JsonViewer.js b/src/js/components/JsonViewer.js index f68a4ecf..5c0278f8 100644 --- a/src/js/components/JsonViewer.js +++ b/src/js/components/JsonViewer.js @@ -8,12 +8,10 @@ export default class extends React.PureComponent { const namespace = [props.name]; let ObjectComponent = JsonObject; - const size = Array.isArray(props.src) - ? props.src.length - : Object.keys(props.src).length; if ( + Array.isArray(props.src) && props.groupArraysAfterLength && - size > props.groupArraysAfterLength + props.src.length > props.groupArraysAfterLength ) { ObjectComponent = ArrayGroup; }