mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-30 23:51:57 +00:00
Dropped support for Shlink 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user