mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-26 13:44:41 +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.
|
||||
*/
|
||||
getMultiSelectContextItems() {
|
||||
const selectedFields = this.$store.getters[
|
||||
this.storePrefix + 'view/grid/getSelectedFields'
|
||||
](this.fields)
|
||||
|
||||
if (selectedFields.length === 1) {
|
||||
return this.$registry
|
||||
.get('field', selectedFields[0].type)
|
||||
.getGridViewContextItemsOnCellsSelection(selectedFields[0])
|
||||
const selectedField = this.getSelectedField()
|
||||
if (selectedField) {
|
||||
const fieldType = this.$registry.get('field', selectedField.type)
|
||||
return fieldType.getGridViewContextItemsOnCellsSelection(selectedField)
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue