Commit 5bb3903
committed
fix(google_sheets): fail fast on non-numeric delete indices
Address Cursor Bugbot: delete_sheet/delete_rows parsed deleteSheetId/startIndex/
endIndex with Number.parseInt but didn't validate, so non-numeric UI input became
NaN and was forwarded (the v2 delete tools only reject null/undefined), breaking
the batchUpdate. The block now throws a clear error when any of these is not a
valid number.1 parent b8ad167 commit 5bb3903
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
911 | 915 | | |
912 | 916 | | |
913 | | - | |
| 917 | + | |
914 | 918 | | |
915 | 919 | | |
916 | 920 | | |
917 | 921 | | |
918 | 922 | | |
919 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
920 | 934 | | |
921 | 935 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
925 | 939 | | |
926 | 940 | | |
927 | 941 | | |
| |||
0 commit comments