Skip to content

Commit 163a1b4

Browse files
committed
Fix warnings
1 parent 2bf5158 commit 163a1b4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/nico/src/nico/components/Block.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<script>
1717
import draggable from 'vuedraggable'
18-
import BlockParamEditor from "./BlockParamEditor"
19-
import { FUNCTIONS_ONLY } from "../constants"
20-
import _ from "lodash"
18+
import BlockParamEditor from './BlockParamEditor'
19+
import { FUNCTIONS_ONLY } from '../constants'
20+
import _ from 'lodash'
2121
2222
export default {
2323
name: 'Block',
@@ -41,12 +41,10 @@ export default {
4141
? { name: 'blocks', pull: 'clone', put: false }
4242
: { name: 'blocks' }
4343
},
44-
marsFuncs: () => FUNCTIONS_ONLY
44+
marsFuncs: () => FUNCTIONS_ONLY,
4545
},
4646
methods: {
47-
onClone (data) {
48-
return _.cloneDeep(data)
49-
}
47+
onClone: data => _.cloneDeep(data),
5048
},
5149
}
5250
</script>

src/nico/src/nico/components/BlockEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export default {
2525
controlFlow: [
2626
{
2727
type: 'if',
28-
children: []
29-
}
28+
children: [],
29+
},
3030
],
3131
nicoFuncs: [
3232
{

src/nico/src/nico/components/BlockParamEditor.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ export default {
1515
name: 'BlockParamEditor',
1616
props: {
1717
value: {
18+
type: Object,
1819
required: true,
1920
},
2021
type: {
22+
type: Object,
2123
required: true,
22-
}
24+
},
2325
},
2426
}
2527
</script>

0 commit comments

Comments
 (0)