fix: fix issue with camel-case object names in temperature panel (#1491)
This commit is contained in:
1 parent
5c40820108
commit
aeee198239
1 file changed
+5
-2
@@ -90,9 +90,12 @@ export default class TemperaturePanelListItem extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get printerObjectSettings() {
|
||||
if (!(this.objectName in (this.$store.state.printer?.configfile?.settings ?? {}))) return {}
|
||||
// convert objectName to lowercase, because klipper only user lowercase in configfile.settings
|
||||
const lowerCaseObjectName = this.objectName.toLowerCase()
|
||||
|
||||
return this.$store.state.printer?.configfile?.settings[this.objectName]
|
||||
if (!(lowerCaseObjectName in (this.$store.state.printer?.configfile?.settings ?? {}))) return {}
|
||||
|
||||
return this.$store.state.printer?.configfile?.settings[lowerCaseObjectName]
|
||||
}
|
||||
|
||||
get name() {
|
||||
|
||||
Reference in new issue
Block a user