change default hook option to None

This commit is contained in:
Jordon 2021-09-29 14:00:29 -04:00
parent bc416f0f44
commit 9fb9db1654
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import LabeledSelect from '@/components/form/LabeledSelect';
import ShellInput from '@/components/form/ShellInput';
import debounce from 'lodash/debounce';
import { _VIEW } from '@/config/query-params';
import { isEmpty } from '@/utils/object';
export default {
props: {
@ -58,6 +59,11 @@ export default {
if (this.value) {
this.selectHook = Object.keys(this.value)[0];
}
if (isEmpty(this.value)) {
this.selectHook = 'none';
}
this.queueUpdate = debounce(this.update, 500);
},