feat: always use index for buckets
This commit is contained in:
parent
672d63fbed
commit
8d88b3792d
4 changed files with 94 additions and 54 deletions
|
|
@ -235,7 +235,7 @@
|
|||
import draggable from 'vuedraggable'
|
||||
|
||||
import BucketModel from '../../../models/bucket'
|
||||
import {filterObject} from '@/helpers/filterObject'
|
||||
import {findById} from '@/helpers/find'
|
||||
import {mapState} from 'vuex'
|
||||
import {saveListView} from '@/helpers/saveListView'
|
||||
import Rights from '../../../models/constants/rights.json'
|
||||
|
|
@ -503,7 +503,7 @@ export default {
|
|||
// Because the contenteditable does not have a change event,
|
||||
// we're building it ourselves here and only updating the bucket
|
||||
// if the title changed.
|
||||
const realBucket = this.buckets[filterObject(this.buckets, b => b.id === bucketId)]
|
||||
const realBucket = findById(this.buckets, bucketId)
|
||||
if (realBucket.title === bucketTitle) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue