We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bfe701 commit fb2aa9cCopy full SHA for fb2aa9c
1 file changed
ui/src/components/header/ProjectMenu.vue
@@ -41,15 +41,13 @@ export default {
41
},
42
data () {
43
return {
44
- selectedProjectId: 0,
+ selectedProjectId: null,
45
loading: false
46
}
47
48
created () {
49
- if (this.$store.getters?.project?.id) {
50
- this.selectedProjectId = this.$store.getters.project.id
51
- this.$store.dispatch('ToggleTheme', this.selectedProjectId ? 'dark' : 'light')
52
- }
+ this.selectedProjectId = this.$store.getters?.project?.id || this.defaultOption.id
+ this.$store.dispatch('ToggleTheme', this.selectedProjectId ? 'dark' : 'light')
53
54
computed: {
55
isDisabled () {
0 commit comments