@nextcloud/files 3.8.0 → 3.9.0

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/index.mjs CHANGED
@@ -2871,8 +2871,8 @@ const isValidView = function(view) {
2871
2871
  if (!view.icon || typeof view.icon !== "string" || !isSvg(view.icon)) {
2872
2872
  throw new Error("View icon is required and must be a valid svg string");
2873
2873
  }
2874
- if (!("order" in view) || typeof view.order !== "number") {
2875
- throw new Error("View order is required and must be a number");
2874
+ if ("order" in view && typeof view.order !== "number") {
2875
+ throw new Error("View order must be a number");
2876
2876
  }
2877
2877
  if (view.columns) {
2878
2878
  view.columns.forEach((column) => {