Fix a bug caused by newly added delete password button
This commit is contained in:
parent
0c241facd6
commit
ac3dbad4dd
1 changed files with 5 additions and 4 deletions
|
|
@ -40,10 +40,11 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
||||||
var cellContents = [String: String]()
|
var cellContents = [String: String]()
|
||||||
for cell in cells {
|
for cell in cells {
|
||||||
let indexPath = tableView.indexPath(for: cell)!
|
let indexPath = tableView.indexPath(for: cell)!
|
||||||
let contentCell = cell as! ContentTableViewCell
|
if let contentCell = cell as? ContentTableViewCell {
|
||||||
let cellTitle = tableData[indexPath.section][indexPath.row][.title] as! String
|
let cellTitle = tableData[indexPath.section][indexPath.row][.title] as! String
|
||||||
if let cellContent = contentCell.getContent() {
|
if let cellContent = contentCell.getContent() {
|
||||||
cellContents[cellTitle] = cellContent
|
cellContents[cellTitle] = cellContent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var plainText = ""
|
var plainText = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue