Commit e5dc3f1 1 parent 91911bc commit e5dc3f1 Copy full SHA for e5dc3f1
File tree 8 files changed +10
-9
lines changed
8 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export default {
138
138
if (this .compVal === null ){
139
139
return ;
140
140
}
141
- if (! this .compVal .startsWith (' +' )) {
141
+ if (! this .compVal ? .startsWith (' +' )) {
142
142
this .selectedCountryCode = this .getCountryBy (this .compVal .substring (2 , 0 ))
143
143
}
144
144
Original file line number Diff line number Diff line change 32
32
<template v-if =" multiple " >
33
33
<div class =" flex items-center truncate mr-6" >
34
34
<span class =" truncate" >
35
- {{ selectedValues.join(', ') }}
35
+ {{ selectedValues? .join(', ') }}
36
36
</span >
37
37
</div >
38
38
</template >
@@ -122,6 +122,7 @@ export default {
122
122
return null
123
123
},
124
124
updateModelValue (newValues ){
125
+ if (newValues === null ) newValues = []
125
126
this .selectedValues = newValues
126
127
},
127
128
updateOptions (newItem ) {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default {
53
53
if (this .disabled ) {
54
54
this .$refs .signaturePad .clearSignature ()
55
55
} else {
56
- const { isEmpty , data } = this .$refs .signaturePad .saveSignature ()
56
+ const { isEmpty , data } = this .$refs .signaturePad ? .saveSignature ()
57
57
this .form [this .name ] = (! isEmpty && data) ? data : null
58
58
}
59
59
}
Original file line number Diff line number Diff line change 23
23
<template v-for =" worksp in workspaces " :key =" worksp .id " >
24
24
<a href =" #"
25
25
class =" px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 flex items-center"
26
- :class =" {'bg-blue-100 dark:bg-blue-900':workspace.id === worksp.id}" @click.prevent =" switchWorkspace(worksp)"
26
+ :class =" {'bg-blue-100 dark:bg-blue-900':workspace? .id === worksp? .id}" @click.prevent =" switchWorkspace(worksp)"
27
27
>
28
28
<div class =" rounded-full h-8 w-8 flex-shrink-0" role =" button" >
29
29
<img v-if =" isUrl(worksp.icon)"
Original file line number Diff line number Diff line change 47
47
</open-form-button >
48
48
49
49
<slot v-if =" isLastPage" name =" submit-btn" :submitForm =" submitForm" />
50
- <open-form-button v-else native-type =" button" :color =" form.color" :theme =" theme" class =" mt-2 px-8 mx-1"
50
+ <open-form-button v-else-if = " currentFieldsPageBreak " native-type =" button" :color =" form.color" :theme =" theme" class =" mt-2 px-8 mx-1"
51
51
@click.stop =" nextPage"
52
52
>
53
53
{{ currentFieldsPageBreak.next_btn_text }}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ function initUpdatedForm() {
56
56
57
57
// Create a form.id watcher that updates working form
58
58
watch (form, (form ) => {
59
- if (form .value ) {
59
+ if (form? .value ) {
60
60
initUpdatedForm ()
61
61
}
62
62
})
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ const editForm = (form) => {
157
157
showEditFormModal .value = true
158
158
}
159
159
const onTagClick = (tag ) => {
160
- if (selectedTags .value .has (tag)) {
160
+ if (selectedTags? .value ? .has (tag)) {
161
161
selectedTags .value .remove (tag)
162
162
} else {
163
163
selectedTags .value .add (tag)
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ const saveChanges = () => {
159
159
// Update the workspace custom domain
160
160
customDomainsForm .put (' /open/workspaces/' + workspace .value .id + ' /custom-domains' , {
161
161
data: {
162
- custom_domains: customDomainsForm .custom_domains .split (' \n ' )
162
+ custom_domains: customDomainsForm? .custom_domains ? .split (' \n ' )
163
163
.map (domain => domain ? domain .trim () : null )
164
164
.filter (domain => domain && domain .length > 0 )
165
165
}
@@ -175,7 +175,7 @@ const saveChanges = () => {
175
175
176
176
const initCustomDomains = () => {
177
177
if (! workspace || ! workspace .value .custom_domains ) return
178
- customDomainsForm .custom_domains = workspace .value .custom_domains .join (' \n ' )
178
+ customDomainsForm .custom_domains = workspace .value ? .custom_domains .join (' \n ' )
179
179
}
180
180
181
181
const deleteWorkspace = (workspaceId ) => {
You can’t perform that action at this time.
0 commit comments