From f94ab2e2a18df768d2274c4df0bc8114379e5d13 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 7 Nov 2024 20:32:51 -0800 Subject: [PATCH] Fix three-arg version of uci.delete (#1680) --- files/app/root.ut | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/files/app/root.ut b/files/app/root.ut index 5a24a9b6..23b1ba5a 100644 --- a/files/app/root.ut +++ b/files/app/root.ut @@ -220,10 +220,15 @@ const uciMethods = } }, - "delete": function(a, b) + "delete": function(a, b, c) { this.init(); - cursor.delete(a, b); + if (c === undefined) { + cursor.delete(a, b); + } + else { + cursor.delete(a, b, c); + } }, error: function() @@ -295,10 +300,15 @@ const uciMeshMethods = } }, - "delete": function(a, b) + "delete": function(a, b, c) { this.init(); - cursorm.delete(a, b); + if (c === undefined) { + cursorm.delete(a, b); + } + else { + cursorm.delete(a, b, c); + } }, error: function()