fix[ThemePicker]: fixed bug when oldVal is null (#1517)
This commit is contained in:
		@@ -18,7 +18,8 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
    theme(val, oldVal) {
 | 
			
		||||
    theme(val) {
 | 
			
		||||
      const oldVal = this.theme
 | 
			
		||||
      if (typeof val !== 'string') return
 | 
			
		||||
      const themeCluster = this.getThemeCluster(val.replace('#', ''))
 | 
			
		||||
      const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user