added api connectin to create and update user interface

This commit is contained in:
2022-03-11 19:22:34 +01:00
parent c97d12e669
commit a0adef9ec5
18 changed files with 367 additions and 186 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ export const userTableReducer = (state, action) => {
let newstate = [];
let newindex = 0;
state.forEach((u, i) => {
if (user.uid && u.uid !== user.uid|| user.line && i !== user.line )
if (user.uid && u.uid != user.uid|| user.line && i != user.line )
newstate.push({ ...u, line: newindex++ })
return newstate;
}, []);
@@ -32,7 +32,7 @@ export const userTableReducer = (state, action) => {
case 'update': {
let newstate = [];
state.forEach((u, i) => {
if (user.uid && u.uid === user.uid || user.line && i === user.line)
if (user.uid && u.uid == user.uid || user.line && i == user.line)
newstate.push(user);
else
newstate.push(u);