Cleanup console.log
This commit is contained in:
parent
cf027db855
commit
6bb9e9460a
|
@ -15,11 +15,8 @@ export function createUpdateProps () {
|
||||||
// process added props
|
// process added props
|
||||||
const prevKeys = new Set(props.map(item => item.key)) // TODO: this is inefficient, creating a set. cache this set?
|
const prevKeys = new Set(props.map(item => item.key)) // TODO: this is inefficient, creating a set. cache this set?
|
||||||
|
|
||||||
console.log('updateProps', { value, prevProps, props})
|
|
||||||
|
|
||||||
Object.keys(value).forEach(key => {
|
Object.keys(value).forEach(key => {
|
||||||
if (!prevKeys.has(key)) {
|
if (!prevKeys.has(key)) {
|
||||||
console.log('add key', key)
|
|
||||||
props.push({
|
props.push({
|
||||||
id: uniqueId(),
|
id: uniqueId(),
|
||||||
key
|
key
|
||||||
|
|
Loading…
Reference in New Issue