@visns-studio/visns-components 5.12.9 → 5.12.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
88
88
|
},
|
|
89
89
|
"name": "@visns-studio/visns-components",
|
|
90
|
-
"version": "5.12.
|
|
90
|
+
"version": "5.12.10",
|
|
91
91
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
92
92
|
"main": "src/index.js",
|
|
93
93
|
"files": [
|
|
@@ -1139,7 +1139,7 @@ const GenericEditableTable = ({
|
|
|
1139
1139
|
reloading the data.
|
|
1140
1140
|
</div>
|
|
1141
1141
|
)
|
|
1142
|
-
) :
|
|
1142
|
+
) : (
|
|
1143
1143
|
<table className={styles.schedulingTable}>
|
|
1144
1144
|
<thead>
|
|
1145
1145
|
<tr>
|
|
@@ -1148,7 +1148,7 @@ const GenericEditableTable = ({
|
|
|
1148
1148
|
</tr>
|
|
1149
1149
|
</thead>
|
|
1150
1150
|
<tbody>
|
|
1151
|
-
{sortBySortOrder(localData).map((entry, idx) => (
|
|
1151
|
+
{localData.length > 0 && sortBySortOrder(localData).map((entry, idx) => (
|
|
1152
1152
|
<tr
|
|
1153
1153
|
key={entry.id}
|
|
1154
1154
|
style={{ background: getRowBackground(entry) }}
|
|
@@ -1213,7 +1213,7 @@ const GenericEditableTable = ({
|
|
|
1213
1213
|
|
|
1214
1214
|
{renderNewRowForm()}
|
|
1215
1215
|
|
|
1216
|
-
{columns.findIndex((col) => col.type === 'total') !==
|
|
1216
|
+
{localData.length > 0 && columns.findIndex((col) => col.type === 'total') !==
|
|
1217
1217
|
-1 && (
|
|
1218
1218
|
<tr className={styles.subtotalRow}>
|
|
1219
1219
|
{columns.map((col, index) => {
|
|
@@ -1257,11 +1257,6 @@ const GenericEditableTable = ({
|
|
|
1257
1257
|
)}
|
|
1258
1258
|
</tbody>
|
|
1259
1259
|
</table>
|
|
1260
|
-
) : (
|
|
1261
|
-
<div className={styles.noDataMessage}>
|
|
1262
|
-
No data available. Please check your filters or try
|
|
1263
|
-
reloading the data.
|
|
1264
|
-
</div>
|
|
1265
1260
|
)}
|
|
1266
1261
|
</div>
|
|
1267
1262
|
);
|