clientjs/packages/dashboard-components/src/pages/term.jsx
changeset 4 df751568fda6
parent 0 5f4fcbc80b37
equal deleted inserted replaced
3:7af67d500dd5 4:df751568fda6
    11 } from 'react-tabs';
    11 } from 'react-tabs';
    12 
    12 
    13 import AnnotationsCards from '../ui/AnnotationsCards';
    13 import AnnotationsCards from '../ui/AnnotationsCards';
    14 import DefinitionsCards from '../ui/DefinitionsCards';
    14 import DefinitionsCards from '../ui/DefinitionsCards';
    15 import IssoThread from '../ui/IssoThread';
    15 import IssoThread from '../ui/IssoThread';
    16 import { toBase64 } from '../utils';
    16 import { getTermId } from '../utils';
    17 
    17 
    18 import './term.scss';
    18 import './term.scss';
    19 
    19 
    20 const TermPage = ({
    20 const TermPage = ({
    21   term,
    21   term,
   116     let { term } = (params || {});
   116     let { term } = (params || {});
   117     term = term ? decodeURIComponent(term) : term;
   117     term = term ? decodeURIComponent(term) : term;
   118 
   118 
   119     const defAndRef = term ? state.terms[term] : {};
   119     const defAndRef = term ? state.terms[term] : {};
   120 
   120 
   121     const term64 = toBase64(dashboardId ? `${dashboardId}::${term}` : term);
   121     const term64 = getTermId(term, dashboardId);
   122 
   122 
   123     const { messageId } = (params || {});
   123     const { messageId } = (params || {});
   124 
   124 
   125     const activeTab = Number((match.params || {}).activeTab || 0);
   125     const activeTab = Number((match.params || {}).activeTab || 0);
   126 
   126