diff --git a/src/State.luau b/src/State.luau index 0c3739b..13f2b99 100644 --- a/src/State.luau +++ b/src/State.luau @@ -413,11 +413,11 @@ end @within State @method remove - @param path string -- The path to the value to remove + @param path string | number -- The path to the value to remove ]=] -function State.remove(self: StateType, path: string) +function State.remove(self: StateType, path: string | number) local prevState = Util.extend({}, self._context or {}) -- Create a local copy - local treePath = Util.split(path, ".", true) + local treePath = Util.split(tostring(path), ".", true) local res = self._context if not res then diff --git a/version.txt b/version.txt index 7b5753f..b000a6a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.4.6 \ No newline at end of file +1.4.7 \ No newline at end of file