Skip to content

Commit 27aa00b

Browse files
committed
commented out all instances of updateComponentChildrenValue, updateComponentChildrenMultiselectValue and componentMultiselectValue
1 parent 673b049 commit 27aa00b

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/components/Canvas.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ const updated = computed(() => {
674674
675675
//methods
676676
const setActiveComponent: typeof store.setActiveComponent = (payload) => store.setActiveComponent(payload);
677-
const updateComponentChildrenMultiselectValue: typeof store.updateComponentChildrenMultiselectValue = (payload) =>
678-
store.updateComponentChildrenMultiselectValue(payload);
677+
// const updateComponentChildrenMultiselectValue: typeof store.updateComponentChildrenMultiselectValue = (payload) =>
678+
// store.updateComponentChildrenMultiselectValue(payload);
679679
const updateActiveComponentChildrenValue: typeof store.updateActiveComponentChildrenValue = (payload) =>
680680
store.updateActiveComponentChildrenValue(payload);
681681
const updateComponentPosition: typeof store.updateComponentPosition = (payload) =>

src/store/actions.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -665,16 +665,16 @@ const actions: Store<"main", State, {}, Actions> = {
665665

666666
this.addComponentToActiveRouteInRouteMap(payload);
667667

668-
const value = this.componentChildrenMultiselectValue.map(
669-
(component) => this.componentMap[component]
670-
);
668+
// const value = this.componentChildrenMultiselectValue.map(
669+
// (component) => this.componentMap[component]
670+
// );
671671

672672
if (this.parentSelected.length) {
673673
this.addParent(payload);
674674
}
675675

676-
this.updateComponentChildrenValue({ componentName, value });
677-
this.updateComponentChildrenMultiselectValue([]);
676+
// this.updateComponentChildrenValue({ componentName, value });
677+
// this.updateComponentChildrenMultiselectValue([]);
678678
this.updateComponentNameInputValue("");
679679
this.setSelectedElementList([]);
680680
this.setActiveComponent("");
@@ -822,16 +822,16 @@ const actions: Store<"main", State, {}, Actions> = {
822822
// also invoked when a child is added to the parent from the sidebar (EditSidebar or HomeSidebar?)
823823
// also invoked when clicked on invoking the modal-view
824824
// event: @ VueMultiselect
825-
updateComponentChildrenMultiselectValue(payload) {
826-
this.componentChildrenMultiselectValue = payload;
827-
},
825+
// updateComponentChildrenMultiselectValue(payload) {
826+
// this.componentChildrenMultiselectValue = payload;
827+
// },
828828

829829
// executed when a new component is made
830830
// additionally adds children to the component
831-
updateComponentChildrenValue(payload) {
832-
const { componentName, value } = payload;
833-
this.componentMap[componentName].children = value;
834-
},
831+
// updateComponentChildrenValue(payload) {
832+
// const { componentName, value } = payload;
833+
// this.componentMap[componentName].children = value;
834+
// },
835835

836836
updateComponentNameInputValue(payload) {
837837
this.componentNameInputValue = payload;

types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type State = {
3737
selectedIdDrop: string;
3838
projectNumber: number;
3939
activeTab: number;
40-
componentChildrenMultiselectValue: string[];
40+
// componentChildrenMultiselectValue: string[];
4141
modalOpen: boolean;
4242
attributeModalOpen: boolean;
4343
noteModalOpen: boolean;

0 commit comments

Comments
 (0)