@@ -49,11 +49,11 @@ export const queryPerspective = gql`
49
49
` ;
50
50
51
51
export const queryLexicalEntries = gql `
52
- query queryPerspective2($id: LingvodocID!, $entitiesMode: String!) {
52
+ query queryPerspective2($id: LingvodocID!, $entitiesMode: String!, $entriesIds: [LingvodocID]! ) {
53
53
perspective(id: $id) {
54
54
id
55
55
translations
56
- lexical_entries(mode: $entitiesMode) {
56
+ lexical_entries(mode: $entitiesMode, ids: $entriesIds ) {
57
57
id
58
58
parent_id
59
59
created_at
@@ -186,7 +186,7 @@ const P = ({
186
186
columns,
187
187
setSortByField : setSort ,
188
188
changePage,
189
- entriesIds,
189
+ // entriesIds,
190
190
createLexicalEntry,
191
191
// mergeLexicalEntries,
192
192
removeLexicalEntries,
@@ -340,7 +340,7 @@ const P = ({
340
340
] ) ;
341
341
342
342
const newEntries = processEntries ( lexicalEntries . filter ( e => ! ! createdEntries . find ( c => isEqual ( e . id , c . id ) ) ) ) ;
343
- const entries = processEntries ( lexicalEntries . filter ( e => ! ! entriesIds . find ( entryId => isEqual ( e . id , entryId ) ) ) ) ;
343
+ const entries = processEntries ( lexicalEntries ) ;
344
344
345
345
const pageEntries =
346
346
entries . length > ROWS_PER_PAGE ? take ( drop ( entries , ROWS_PER_PAGE * ( page - 1 ) ) , ROWS_PER_PAGE ) : entries ;
@@ -446,6 +446,7 @@ P.propTypes = {
446
446
className : PropTypes . string . isRequired ,
447
447
page : PropTypes . number . isRequired ,
448
448
mode : PropTypes . string . isRequired ,
449
+ entriesIds : PropTypes . array . isRequired ,
449
450
entitiesMode : PropTypes . string . isRequired ,
450
451
filter : PropTypes . string ,
451
452
data : PropTypes . object . isRequired ,
@@ -576,6 +577,7 @@ PerspectiveViewWrapper.propTypes = {
576
577
className : PropTypes . string . isRequired ,
577
578
page : PropTypes . number . isRequired ,
578
579
mode : PropTypes . string . isRequired ,
580
+ entriesIds : PropTypes . array . isRequired ,
579
581
entitiesMode : PropTypes . string . isRequired ,
580
582
filter : PropTypes . string ,
581
583
data : PropTypes . object . isRequired ,
0 commit comments