lint fix
This commit is contained in:
parent
78ee1edf40
commit
b89573e1f2
|
@ -234,7 +234,13 @@ export const getBackendUiStore = () => {
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
saveField: ({ originalName, field, primaryDisplay = false, indexes, relationshipType }) => {
|
saveField: ({
|
||||||
|
originalName,
|
||||||
|
field,
|
||||||
|
primaryDisplay = false,
|
||||||
|
indexes,
|
||||||
|
relationshipType,
|
||||||
|
}) => {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
// delete the original if renaming
|
// delete the original if renaming
|
||||||
// need to handle if the column had no name, empty string
|
// need to handle if the column had no name, empty string
|
||||||
|
@ -252,7 +258,7 @@ export const getBackendUiStore = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set relationship type
|
// Set relationship type
|
||||||
if (field.type === 'link') {
|
if (field.type === "link") {
|
||||||
state.draftTable.relationshipType = relationshipType
|
state.draftTable.relationshipType = relationshipType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,7 +199,10 @@ export function makeDatasourceFormComponents(datasource) {
|
||||||
component.customProps({ placeholder: "Choose an option " })
|
component.customProps({ placeholder: "Choose an option " })
|
||||||
}
|
}
|
||||||
if (fieldType === "link") {
|
if (fieldType === "link") {
|
||||||
let placeholder = fieldSchema.relationshipType === 'one-to-many' ? 'Choose an option' : 'Choose some options'
|
let placeholder =
|
||||||
|
fieldSchema.relationshipType === "one-to-many"
|
||||||
|
? "Choose an option"
|
||||||
|
: "Choose some options"
|
||||||
component.customProps({ placeholder })
|
component.customProps({ placeholder })
|
||||||
}
|
}
|
||||||
if (fieldType === "boolean") {
|
if (fieldType === "boolean") {
|
||||||
|
|
Loading…
Reference in New Issue