mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 07:44:46 +08:00
Fix double request for editing item card name [SCI-9771] (#6696)
* Fix double request for editing item card name [SCI-9771] * Set repository cell to nil after deleting repository cell in row update service [SCI-9771]
This commit is contained in:
parent
9adad3139c
commit
6c11c6641b
2 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@ export default {
|
|||
components: {
|
||||
"inline-edit": InlineEdit
|
||||
},
|
||||
emits: ['update'],
|
||||
props: {
|
||||
editable: Boolean,
|
||||
name: String,
|
||||
|
|
|
@ -27,10 +27,11 @@ module RepositoryRows
|
|||
|
||||
if @cell.present? && value.blank?
|
||||
@cell.destroy!
|
||||
@cell = nil
|
||||
@record_updated = true
|
||||
next
|
||||
elsif @cell.blank? && value.present?
|
||||
RepositoryCell.create_with_value!(@repository_row, @column, value, @user)
|
||||
@cell = RepositoryCell.create_with_value!(@repository_row, @column, value, @user)
|
||||
@record_updated = true
|
||||
next
|
||||
elsif @cell.blank? && value.blank?
|
||||
|
|
Loading…
Reference in a new issue