From 559aeeae5ebffcc685d023db9bcad1dc2ca01db2 Mon Sep 17 00:00:00 2001 From: Michael Nelson Date: Mon, 16 Jan 2023 10:03:13 -0800 Subject: [PATCH] Directions waypoints method returns data This fixes an error where the waypoints method getCurrentLocation() did not return a value and code calling the method attempted to call a method on the undefined return value. --- src/smk/tool/directions/tool-directions-waypoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smk/tool/directions/tool-directions-waypoints.js b/src/smk/tool/directions/tool-directions-waypoints.js index 6a5d1026..e949aef4 100644 --- a/src/smk/tool/directions/tool-directions-waypoints.js +++ b/src/smk/tool/directions/tool-directions-waypoints.js @@ -79,7 +79,7 @@ include.module( 'tool-directions.tool-directions-waypoints-js', [ self.showStatusMessage( 'Finding current location...', 'progress', null ) self.busy = true - smk.$viewer.getCurrentLocation().finally( function () { + return smk.$viewer.getCurrentLocation().finally( function () { self.busy = false self.showStatusMessage() } )