mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-25 13:23:42 +00:00
Fix bug when generating multiple cell values for the AI field
This commit is contained in:
parent
a8db75b31c
commit
1641a3cf9a
1 changed files with 4 additions and 8 deletions
|
@ -1546,14 +1546,10 @@ export default {
|
||||||
* Shows the context menu with the appropriate options.
|
* Shows the context menu with the appropriate options.
|
||||||
*/
|
*/
|
||||||
getMultiSelectContextItems() {
|
getMultiSelectContextItems() {
|
||||||
const selectedFields = this.$store.getters[
|
const selectedField = this.getSelectedField()
|
||||||
this.storePrefix + 'view/grid/getSelectedFields'
|
if (selectedField) {
|
||||||
](this.fields)
|
const fieldType = this.$registry.get('field', selectedField.type)
|
||||||
|
return fieldType.getGridViewContextItemsOnCellsSelection(selectedField)
|
||||||
if (selectedFields.length === 1) {
|
|
||||||
return this.$registry
|
|
||||||
.get('field', selectedFields[0].type)
|
|
||||||
.getGridViewContextItemsOnCellsSelection(selectedFields[0])
|
|
||||||
} else {
|
} else {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue