Skip to content

Commit

Permalink
bugfixes and version bump (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisclark authored Feb 7, 2024
1 parent 8e08447 commit baf8670
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion explorer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version_info__ = {
"major": 4,
"minor": 0,
"patch": 1,
"patch": 2,
"releaselevel": "final",
"serial": 0
}
Expand Down
14 changes: 7 additions & 7 deletions explorer/src/js/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ export class ExplorerEditor {
}
})

// Define the beforeUnloadHandler function for easier add/remove


document.querySelectorAll('.query_favorite_toggle').forEach(function(element) {
element.addEventListener('click', toggleFavorite);
});
Expand Down Expand Up @@ -291,10 +288,13 @@ export class ExplorerEditor {
}

// List.js setup for the preview pane to support sorting
let thElements = document.querySelector('#preview').querySelectorAll('th');
new List('preview', {
valueNames: Array.from(thElements, (_, index) => index)
});
let previewPane = document.querySelector('#preview');
if (previewPane) {
let thElements = previewPane.querySelectorAll('th');
new List('preview', {
valueNames: Array.from(thElements, (_, index) => index)
});
}

document.querySelectorAll('.sort').forEach(sortButton => {
sortButton.addEventListener('click', function(e) {
Expand Down
4 changes: 3 additions & 1 deletion explorer/src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ const route_initializers = {
};

document.addEventListener('DOMContentLoaded', function() {
route_initializers[clientRoute]();
if (route_initializers.hasOwnProperty(clientRoute)) {
route_initializers[clientRoute]();
}
});
2 changes: 1 addition & 1 deletion explorer/templates/explorer/fullscreen.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% trans "SQL Explorer" %}{% if query %} - {{ query.title }}{% elif title %} - {{ title }}{% endif %}</title>
{% block style %}
{% vite_asset 'scss/main.scss' %}
{% vite_asset 'scss/styles.scss' %}
{% endblock style %}
</head>

Expand Down

0 comments on commit baf8670

Please sign in to comment.