Skip to content

Commit 340e747

Browse files
aleckslusn163jeffreysulkennyeardbender
committed
Removed console.logs and unused import, increased tree render speed
Co-authored-by: Sonny Nguyen <[email protected]> Co-authored-by: Jeffrey Sul <[email protected]> Co-authored-by: Kenneth Lee <[email protected]> Co-authored-by: Ryan Bender <[email protected]>
1 parent df7a3e3 commit 340e747

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/dashboard_items/Tree.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Description:
1414
type="tree"
1515
:zoomable="true"
1616
:radius="4"
17+
:duration="10"
1718
></tree>
1819
</div>
1920
</template>
@@ -36,7 +37,8 @@ export default {
3637
},
3738
data () {
3839
return {
39-
tree: null
40+
tree: null,
41+
treeKey: 'key'
4042
}
4143
},
4244
methods: {

src/components/home_sidebar_items/Icons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Description:
2222

2323
<script>
2424
import { mapState } from 'vuex'
25-
import { breadthFirstSearch } from '../../utils/search.util'
25+
// import { breadthFirstSearch } from '../../utils/search.util'
2626
2727
export default {
2828
data () {

src/store/mutations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const mutations = {
261261
[types.COPY_ACTIVE_COMPONENT]: (state, payload) => {
262262
// copy activeComponentObj and place in the state but without children
263263
const copy = { ...state.activeComponentObj };
264-
copy.componentName;
264+
// copy.componentName;
265265
copy.children = [];
266266
copy.isActive = false;
267267
state.copiedComponent = copy;
@@ -278,7 +278,7 @@ const mutations = {
278278
copiedComponent.y += 20;
279279
const pastedComponent = { ...copiedComponent }
280280
state.componentMap[pastedComponent.componentName += ` (${state.copyNumber})`] = pastedComponent;
281-
281+
282282
// increment copyNumber
283283
state.copyNumber += 1;
284284
// track for pastedComponent

0 commit comments

Comments
 (0)