You can make that determination based upon the information set forth in Publication 527 (below), but this really does not appear to be something that needs to be capitalized; it appears to be a repair that can be expensed.
See https://www.irs.gov/publications/p527#en_US_2020_publink1000280324
Generally, an expense for repairing or maintaining your rental property may be deducted if you aren’t required to capitalize the expense.
Improvements.
You must capitalize any expense you pay to improve your rental property. An expense is for an improvement if it results in a betterment to your property, restores your property, or adapts your property to a new or different use. Table 1-1 shows examples of many improvements.
Betterments.
Expenses that may result in a betterment to your property include expenses for fixing a pre-existing defect or condition, enlarging or expanding your property, or increasing the capacity, strength, or quality of your property.
Restoration.
Expenses that may be for restoration include expenses for replacing a substantial structural part of your property, repairing damage to your property after you properly adjusted the basis of your property as a result of a casualty loss, or rebuilding your property to a like-new condition.
Adaptation.
Expenses that may be for adaptation include expenses for altering your property to a use that isn’t consistent with the intended ordinary use of your property when you began renting the property.