1
0
mirror of synced 2025-12-30 03:01:36 -05:00

chore: replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot
2022-03-18 10:53:15 +01:00
committed by GitHub
parent 2a91893b3d
commit 464e527261

View File

@@ -190,7 +190,7 @@ export function generateUpdateProjectNextItemFieldMutation({
// Strip all non-alphanumeric out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
// (statistically, this should still give us a unique mutation ID)
return `
set_${fieldID.substr(1)}_item_${item.replaceAll(
set_${fieldID.slice(1)}_item_${item.replaceAll(
/[^a-z0-9]/g,
''
)}: updateProjectNextItemField(input: {