mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-09 13:10:19 +03:00
Dropped support for Shlink 1
This commit is contained in:
parent
b9905c8bf4
commit
df6f1b984f
14 changed files with 45 additions and 145 deletions
src/short-urls/helpers
|
@ -21,7 +21,7 @@ const DeleteShortUrlModal = (
|
|||
useEffect(() => resetDeleteShortUrl, []);
|
||||
|
||||
const { error, errorData } = shortUrlDeletion;
|
||||
const errorCode = error && (errorData?.type || errorData?.error);
|
||||
const errorCode = error && errorData?.type;
|
||||
const hasThresholdError = errorCode === THRESHOLD_REACHED;
|
||||
const hasErrorOtherThanThreshold = error && errorCode !== THRESHOLD_REACHED;
|
||||
const close = pipe(resetDeleteShortUrl, toggle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue