Skip to content

Commit

Permalink
style: ran lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed May 17, 2024
1 parent 5c50d0c commit b9baa37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions core/client/components/form/KForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,7 @@ async function build () {
let component = _.get(field.field, 'component', '')
if (!component) {
// Provide a default component based on schema value type when none is specified
if (field.type === 'number' || field.type === 'integer')
component = 'form/KNumberField'
else if (field.type === 'boolean')
component = 'form/KToggleField'
else if (field.type === 'string')
component = 'form/KTextField'
if (field.type === 'number' || field.type === 'integer') { component = 'form/KNumberField' } else if (field.type === 'boolean') { component = 'form/KToggleField' } else if (field.type === 'string') { component = 'form/KTextField' }
}
cloneField.component = loadComponent(component)
cloneField.reference = null // will be set once te field is rendered
Expand Down
1 change: 0 additions & 1 deletion map/client/components/KFeatureEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<script>
import _ from 'lodash'
import { mixins as kCoreMixins, composables as kCoreComposables } from '../../../core/client'
import { updatePropertiesSchema } from '../utils.js'
import { KModalEditor } from '../../../core/client/components'
export default {
Expand Down

0 comments on commit b9baa37

Please sign in to comment.