@visns-studio/visns-components 4.9.1 → 4.9.2

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
@@ -75,7 +75,7 @@
75
75
  "react-dom": "^17.0.0 || ^18.0.0"
76
76
  },
77
77
  "name": "@visns-studio/visns-components",
78
- "version": "4.9.1",
78
+ "version": "4.9.2",
79
79
  "description": "Various packages to assist in the development of our Custom Applications.",
80
80
  "main": "src/index.js",
81
81
  "files": [
@@ -673,13 +673,18 @@ function Field({
673
673
  className={inputClass[settings.id]}
674
674
  onChange={onChange}
675
675
  />
676
+ {console.info(inputValue)}
676
677
  {inputValue && inputValue.length > 0 && (
677
678
  <ul className="file-list">
678
679
  {inputValue.map((file, index) => (
679
680
  <li
680
681
  key={`file-${settings.id}-${index}`}
681
682
  >
682
- {file.name}
683
+ {file.name
684
+ ? file.name
685
+ : file.file_name
686
+ ? file.file_name
687
+ : ''}
683
688
  <button
684
689
  className="trash-button"
685
690
  onClick={(e) => {
@@ -432,10 +432,6 @@ function Form({
432
432
  const renderInputValue = (i, f) => {
433
433
  let value = '';
434
434
 
435
- if (i.id === 'event_detail.type_of_event') {
436
- console.info(i, f);
437
- }
438
-
439
435
  if (i.hasOwnProperty('parent') && i.parent) {
440
436
  if (f[i.parent]) {
441
437
  value = i.hasOwnProperty('key')