Merge pull request #18912 from silentoplayz/fix-functions-page-delete
fix: update Functions page after deleting a function
This commit is contained in:
@@ -158,6 +158,7 @@
|
|||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
toast.success($i18n.t('Function deleted successfully'));
|
toast.success($i18n.t('Function deleted successfully'));
|
||||||
|
functions = functions.filter((f) => f.id !== func.id);
|
||||||
|
|
||||||
_functions.set(await getFunctions(localStorage.token));
|
_functions.set(await getFunctions(localStorage.token));
|
||||||
models.set(
|
models.set(
|
||||||
|
|||||||
Reference in New Issue
Block a user