diff --git a/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js b/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js index 5b0bfff..80940ed 100644 --- a/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js +++ b/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js @@ -149,7 +149,7 @@ $(function() { }); self.printerStateViewModel.dateString.subscribe(function(data){ - if(data){ + if(data && data != "unknown"){ OctoPrint.files.get('local',self.printerStateViewModel.filepath()) .done(function(file_data){ if(file_data){ diff --git a/setup.py b/setup.py index 22f8abd..96bbcff 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "Slicer Thumbnails" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.0.4" +plugin_version = "1.0.5" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module