Skip to content

Commit

Permalink
add null check for currentProfileData, fixing issue introduced in oct…
Browse files Browse the repository at this point in the history
…oprint 1.10.0rc4. #403
  • Loading branch information
j7126 committed Apr 9, 2024
1 parent 6a48b12 commit 16b6e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_dashboard/templates/dashboard_tab.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<img class="dashboardIcon" title="{{ _('Printer profile') }}"
src="plugin/dashboard/static/img/printer-icon.png">
<span id="profileInfo" title="{{ _('Profile name') }}"
data-bind="html: printerProfilesModel.currentProfileData().name()"></span>
data-bind="html: printerProfilesModel.currentProfileData() != null ? printerProfilesModel.currentProfileData().name() : ''"></span>
</div>
<div class="dashboardGridItem" printer
data-bind="visible: (!dashboardSettings.printingOnly_Status() || printerStateModel.isPrinting()) && dashboardSettings.showStatus() && fsStatus()">
Expand Down

0 comments on commit 16b6e8d

Please sign in to comment.