Browse Source

fix: update props

pull/1/head
wahyun 8 months ago
parent
commit
4585cd07e4
  1. 6
      src/views/SimproV2/Gantt/index.js

6
src/views/SimproV2/Gantt/index.js

@ -9,7 +9,7 @@ import GanttFrame from "./GanttFrame";
let roCount = 0; let roCount = 0;
const Gantt = (props) => { const Gantt = (props) => {
let role_id = 0, user_id = 0, isLogin = false, token = '', companyId = 0, all_project = null, role_name='', hierarchy=[], user_name='', configApp=''; let role_id = 0, user_id = 0, isLogin = false, token = '', companyId = 0, all_project = null, role_name='', hierarchy=[], user_name='', companyName='';
if (props && props.role_id && props.user_id) { if (props && props.role_id && props.user_id) {
role_id = props.role_id; role_id = props.role_id;
user_id = props.user_id; user_id = props.user_id;
@ -21,7 +21,7 @@ const Gantt = (props) => {
isLogin = props.isLogin; isLogin = props.isLogin;
hierarchy = props.hierarchy; hierarchy = props.hierarchy;
user_name = props.user_name; user_name = props.user_name;
configApp = props.configApp; companyName = props.companyName;
} }
const HEADER = { const HEADER = {
headers: { headers: {
@ -112,7 +112,7 @@ const Gantt = (props) => {
role_name={role_name} role_name={role_name}
companyId={companyId} companyId={companyId}
timestamp={timestamp} timestamp={timestamp}
company_name={JSON.parse(configApp).company_name} company_name={companyName}
/> />
)} )}
</div> </div>

Loading…
Cancel
Save