Commit 785c9adb authored by Kushal Pandya's avatar Kushal Pandya

Clean up to remove ESLint disable, GeoNodesService init

parent 300987bb
...@@ -14,11 +14,10 @@ export default () => { ...@@ -14,11 +14,10 @@ export default () => {
const el = document.getElementById('js-geo-nodes'); const el = document.getElementById('js-geo-nodes');
if (!el) { if (!el) {
return; return false;
} }
// eslint-disable-next-line no-new return new Vue({
new Vue({
el, el,
components: { components: {
geoNodesApp, geoNodesApp,
...@@ -28,7 +27,7 @@ export default () => { ...@@ -28,7 +27,7 @@ export default () => {
const nodeActionsAllowed = convertPermissionToBoolean(dataset.nodeActionsAllowed); const nodeActionsAllowed = convertPermissionToBoolean(dataset.nodeActionsAllowed);
const nodeEditAllowed = convertPermissionToBoolean(dataset.nodeEditAllowed); const nodeEditAllowed = convertPermissionToBoolean(dataset.nodeEditAllowed);
const store = new GeoNodesStore(dataset.primaryVersion, dataset.primaryRevision); const store = new GeoNodesStore(dataset.primaryVersion, dataset.primaryRevision);
const service = new GeoNodesService(dataset.nodeDetailsPath); const service = new GeoNodesService();
return { return {
store, store,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment