edit and re publist

This commit is contained in:
Admin 2025-08-16 10:40:58 +07:00
parent cecda51e10
commit 712843527b
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
VITE_APP_NAME = 'Admin'
VITE_BASE_URL = 'http://10.20.2.227:4000/api/v1/'
VITE_BASE_URL = 'http://localhost:4000/api/v1/'

2
client/.gitignore vendored
View File

@ -4,3 +4,5 @@
# React Router
/.react-router/
/build/
.env

View File

@ -714,7 +714,7 @@ export default function ProductModal({
onClick={form.handleSubmit(onSubmit)}
disabled={form.formState.isSubmitting}
>
{form.formState.isSubmitting ? (
{form.formState.isSubmitting || actionMutation.isPending ? (
<Loader color="white" />
) : data ? (
"Save"