Skip to content

Instantly share code, notes, and snippets.

@ZeroByter
Created August 27, 2020 08:53
Show Gist options
  • Save ZeroByter/09568b5135a9e0be00e5175d1b46832a to your computer and use it in GitHub Desktop.
Save ZeroByter/09568b5135a9e0be00e5175d1b46832a to your computer and use it in GitHub Desktop.
var updateData = {}
updateData.$unset = {}
updateData.$unset["lists." + this.props.listIndex + ".cards." + this.props.cardIndex + ".checklists." + this.props.checklistIndex] = true
db.update({_id: this.props.boardId}, updateData, function(){
this.props.reloadBoard()
}.bind(this))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment