Commit 62fcafc
authored
Forms 1.0.15: Fix null value handling and form submission error detection (#725)
* Fix null value handling and form submission error detection
- Fixed critical null value handling in JSP/getFilteredProps/getAllPropertyNames
functions to prevent 'TypeError: null is not an object' errors
- Fixed form submission success detection - undefined is now treated as success
when templateRunner creates a note (was incorrectly flagged as error)
- Added deep null sanitization throughout form data processing
- Made templateNew return filename for API consistency
- Updated templateRunner to return filename on successful note creation
- Removed setTimeout usage (not available in NotePlan JSContext)
- Improved error messages for better debugging
Version bump to 1.0.15
* Refactor: Move data fetching functions to dataHandlers.js and improve error handling
- Moved getFolders, getNotes, getEvents, getHashtags, getMentions, getTeamspaces
from requestHandlers.js to new dataHandlers.js to break circular dependencies
- Moved RequestResponse type to shared/types.js for better type sharing
- Improved error handling in FormBrowserView for form submission responses
- Updated imports across affected files1 parent 81589ec commit 62fcafc
14 files changed
Lines changed: 1185 additions & 663 deletions
File tree
- dwertheimer.Forms
- src
- components
- helpers
- react/DynamicDialog
- np.Templating/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
7 | 27 | | |
8 | 28 | | |
9 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
529 | 540 | | |
530 | 541 | | |
531 | 542 | | |
| |||
537 | 548 | | |
538 | 549 | | |
539 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
540 | 605 | | |
541 | 606 | | |
542 | 607 | | |
| |||
568 | 633 | | |
569 | 634 | | |
570 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
571 | 647 | | |
572 | 648 | | |
573 | | - | |
574 | | - | |
| 649 | + | |
| 650 | + | |
575 | 651 | | |
576 | 652 | | |
577 | 653 | | |
578 | 654 | | |
579 | 655 | | |
580 | | - | |
| 656 | + | |
581 | 657 | | |
582 | 658 | | |
583 | 659 | | |
| |||
0 commit comments