CEC-2977 Filter portal access based on auth provider (#231)
* fix/fleet-vehicles-search * fix/fleet-name-update * Update hasRole logic, create RoleWrap component * Add MAGNA and MAGNAGROUP env vars * Add Permissions Co-authored-by: jwu-fisker <jwu@fiskerinc.com>
This commit is contained in:
@@ -49,9 +49,7 @@ const MainForm = () => {
|
||||
const onSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
try {
|
||||
const data = {name, type};
|
||||
console.log(data);
|
||||
const result = await updateManifest(manifest_id, data, token);
|
||||
const result = await updateManifest(manifest_id, {name, type}, token);
|
||||
if (!result || result.error) return;
|
||||
|
||||
setMessage(`Updated manifest ${manifest_id}`);
|
||||
|
||||
Reference in New Issue
Block a user