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:
wandji 2023-11-23 17:35:34 +01:00 committed by GitHub
parent 9adad3139c
commit 6c11c6641b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@ export default {
components: {
"inline-edit": InlineEdit
},
emits: ['update'],
props: {
editable: Boolean,
name: String,

View file

@ -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?