|
@@ -138,12 +138,14 @@ function cellRender(prop: keyof SASPaper) {
|
|
data[index - 1]?.projectId === contrastProjectId
|
|
data[index - 1]?.projectId === contrastProjectId
|
|
? data[index - 1]
|
|
? data[index - 1]
|
|
: data[index - 2];
|
|
: data[index - 2];
|
|
- if (op[prop] > record[prop]) {
|
|
|
|
- getClass = "arrow-down-indicator";
|
|
|
|
- } else if (op[prop] === record[prop]) {
|
|
|
|
- getClass = "arrow-equal-indicator";
|
|
|
|
- } else {
|
|
|
|
- getClass = "arrow-up-indicator";
|
|
|
|
|
|
+ if (op) {
|
|
|
|
+ if (op[prop] > record[prop]) {
|
|
|
|
+ getClass = "arrow-down-indicator";
|
|
|
|
+ } else if (op[prop] === record[prop]) {
|
|
|
|
+ getClass = "arrow-equal-indicator";
|
|
|
|
+ } else {
|
|
|
|
+ getClass = "arrow-up-indicator";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return {
|
|
return {
|