Socket
Socket
Sign inDemoInstall

react-images-upload

Package Overview
Dependencies
2
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

8

compiled.js

@@ -52,3 +52,3 @@ 'use strict';

_this.state = {
pictures: [],
pictures: props.defaultImage ? [props.defaultImage] : [],
files: [],

@@ -79,5 +79,5 @@ notAcceptedFileType: [],

key: 'componentWillReceiveProps',
value: function componentWillReceiveProps() {
if (this.props.defaultImage) {
this.setState({ pictures: [this.props.defaultImage] });
value: function componentWillReceiveProps(nextProps) {
if (nextProps.defaultImage) {
this.setState({ pictures: [nextProps.defaultImage] });
}

@@ -84,0 +84,0 @@ }

@@ -19,3 +19,3 @@ import React from 'react';

this.state = {
pictures: [],
pictures: props.defaultImage ? [props.defaultImage] : [],
files: [],

@@ -40,5 +40,5 @@ notAcceptedFileType: [],

*/
componentWillReceiveProps(){
if(this.props.defaultImage){
this.setState({pictures: [this.props.defaultImage]});
componentWillReceiveProps(nextProps){
if(nextProps.defaultImage){
this.setState({pictures: [nextProps.defaultImage]});
}

@@ -45,0 +45,0 @@ }

{
"name": "react-images-upload",
"version": "1.2.0",
"version": "1.2.1",
"private": false,

@@ -5,0 +5,0 @@ "main": "compiled.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc