diff --git a/app/static/app/js/components/LayersControlAnnotations.jsx b/app/static/app/js/components/LayersControlAnnotations.jsx index a6835b75a..3d0bc6018 100644 --- a/app/static/app/js/components/LayersControlAnnotations.jsx +++ b/app/static/app/js/components/LayersControlAnnotations.jsx @@ -79,7 +79,8 @@ class AnnotationLayer extends React.Component{ export default class LayersControlAnnotations extends React.Component { static defaultProps = { expanded: true, - visible: true + visible: true, + layers: [] }; static propTypes = { diff --git a/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx b/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx index dee77c97d..4df58e9ad 100644 --- a/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx +++ b/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx @@ -4,7 +4,7 @@ import LayersControlAnnotations from '../LayersControlAnnotations'; describe('', () => { it('renders without exploding', () => { - const wrapper = mount(); + const wrapper = mount(); expect(wrapper.exists()).toBe(true); }) }); \ No newline at end of file