Browse Source

remove unused logic in backend store

pull/1122/head
Keviin Åberg Kultalahti 5 years ago
parent
commit
f9e519be9e
  1. 6
      packages/builder/src/builderStore/store/backend.js

6
packages/builder/src/builderStore/store/backend.js

@ -239,7 +239,6 @@ export const getBackendUiStore = () => {
field,
primaryDisplay = false,
indexes,
relationshipType,
}) => {
store.update(state => {
// delete the original if renaming
@ -257,11 +256,6 @@ export const getBackendUiStore = () => {
state.draftTable.primaryDisplay = field.name
}
// Set relationship type
if (field.type === "link") {
state.draftTable.relationshipType = relationshipType
}
if (indexes) {
state.draftTable.indexes = indexes
}

Loading…
Cancel
Save