fix issue with new useNotify() hook and run now_view.sql in anon database to show statistics there too

This commit is contained in:
juhanikat
2025-08-07 12:14:13 +03:00
parent d65597ee67
commit de2cc50c11
2 changed files with 2 additions and 1 deletions
@@ -27,7 +27,7 @@ export const WriteButton = <T,>({
const { editData, setEditData, mode, setMode, validator, fieldsWithErrors, setFieldsWithErrors } =
useDetailContext<T>()
const [loading, setLoading] = useState(false)
const notify = useNotify()
const { notify } = useNotify()
const [getSpeciesData] = useLazyGetAllSpeciesQuery()
const [getSynonyms] = useLazyGetAllSynonymsQuery()
+1
View File
@@ -8,6 +8,7 @@ SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_test.sql
USE now_log_test
SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_log_test.sql
USE now_test
SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_view.sql
CREATE USER 'now_test'@'localhost' IDENTIFIED BY 'mariadb_password';
GRANT SELECT, INSERT, UPDATE ON `now_log_test`.* TO 'now_test'@'%';