From 481de3c75cc8b2859a9f82b96dcb1c068d4764b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 19 Feb 2021 14:59:47 +0100 Subject: [PATCH] remove unused logic in backend store --- packages/builder/src/builderStore/store/backend.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index 951eaba683..5693fedf15 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/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 }