Replace sketchy lodash import for tooltip ids with own implementation (#2378)

This commit is contained in:
absidue 2022-07-09 23:43:51 +02:00 committed by GitHub
parent 6ced687139
commit 43b9effb46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import Vue from 'vue' import Vue from 'vue'
import { uniqueId } from 'lodash'
let idCounter = 0
export default Vue.extend({ export default Vue.extend({
name: 'FtTooltip', name: 'FtTooltip',
@ -15,7 +16,7 @@ export default Vue.extend({
} }
}, },
data() { data() {
const id = uniqueId('ft-tooltip-') const id = `ft-tooltip-${++idCounter}`
return { return {
id id