1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

remove unused logic in backend store

This commit is contained in:
Keviin Åberg Kultalahti 2021-02-19 14:59:47 +01:00
parent fa1a2c58c5
commit f9e519be9e

View file

@ -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
}