dce-reactkit 3.9.4-beta-logreviewer.9 → 3.9.4-beta-logreviewer.11

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/dist/cjs/index.js CHANGED
@@ -4476,7 +4476,7 @@ const LogReviewer = (props) => {
4476
4476
  React__default["default"].createElement("input", { type: "text", className: "form-control", "aria-label": "query for course canvas id", value: pendingAdvancedFilterState.courseId, placeholder: "e.g. 15948", onChange: (e) => {
4477
4477
  const { value } = e.target;
4478
4478
  // Only update if value contains only numbers
4479
- if (/^\d+$/.test(value)) {
4479
+ if (/^\d+$/.test(value) || value === '') {
4480
4480
  pendingAdvancedFilterState.courseId = ((e.target.value)
4481
4481
  .trim());
4482
4482
  }
@@ -14255,6 +14255,7 @@ const initServer = (opts) => {
14255
14255
  query,
14256
14256
  perPage: LOG_REVIEW_PAGE_SIZE,
14257
14257
  pageNumber,
14258
+ sortDescending: true,
14258
14259
  });
14259
14260
  // Count documents if requested
14260
14261
  if (countDocuments) {