remove unused logic in backend store
This commit is contained in:
parent
5b5a5b5438
commit
481de3c75c
|
@ -239,7 +239,6 @@ export const getBackendUiStore = () => {
|
||||||
field,
|
field,
|
||||||
primaryDisplay = false,
|
primaryDisplay = false,
|
||||||
indexes,
|
indexes,
|
||||||
relationshipType,
|
|
||||||
}) => {
|
}) => {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
// delete the original if renaming
|
// delete the original if renaming
|
||||||
|
@ -257,11 +256,6 @@ export const getBackendUiStore = () => {
|
||||||
state.draftTable.primaryDisplay = field.name
|
state.draftTable.primaryDisplay = field.name
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set relationship type
|
|
||||||
if (field.type === "link") {
|
|
||||||
state.draftTable.relationshipType = relationshipType
|
|
||||||
}
|
|
||||||
|
|
||||||
if (indexes) {
|
if (indexes) {
|
||||||
state.draftTable.indexes = indexes
|
state.draftTable.indexes = indexes
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue