mirror of
https://github.com/Qortal/qapp-core.git
synced 2025-06-14 17:41:20 +00:00
fixes
This commit is contained in:
parent
9f8588750a
commit
9a538f86d7
@ -181,7 +181,7 @@ const addItems = useListStore((s) => s.addItems);
|
||||
const parsedParams = {...(JSON.parse(memoizedParamsSearchNewData))};
|
||||
parsedParams.identifier = generatedIdentifier
|
||||
parsedParams.after = lastItemTimestampRef.current
|
||||
const responseData = await lists.fetchResourcesResultsOnly(parsedParams, listName, returnType); // Awaiting the async function
|
||||
const responseData = await lists.fetchResourcesResultsOnly(parsedParams); // Awaiting the async function
|
||||
if(onNewData && responseData?.length > 0){
|
||||
onNewData(true)
|
||||
}
|
||||
|
@ -250,9 +250,7 @@ export const useResources = (retryAttempts: number = 2) => {
|
||||
|
||||
const fetchResourcesResultsOnly = useCallback(
|
||||
async (
|
||||
params: QortalSearchParams,
|
||||
listName: string,
|
||||
returnType: ReturnType = 'JSON'
|
||||
params: QortalSearchParams
|
||||
): Promise<QortalMetadata[]> => {
|
||||
|
||||
let responseData: QortalMetadata[] = [];
|
||||
|
@ -17,7 +17,7 @@ export { RequestQueueWithPromise } from './utils/queue';
|
||||
export { GlobalProvider, useGlobal } from "./context/GlobalProvider";
|
||||
export {usePublish} from "./hooks/usePublish"
|
||||
export {ResourceListDisplay} from "./components/ResourceList/ResourceListDisplay"
|
||||
export {QortalSearchParams} from './types/interfaces/resources'
|
||||
export {QortalSearchParams, QortalMetadata} from './types/interfaces/resources'
|
||||
export {ImagePicker} from './common/ImagePicker'
|
||||
export {useNameSearch} from './hooks/useNameSearch'
|
||||
export {Resource} from './hooks/useResources'
|
||||
|
@ -17,6 +17,12 @@ export enum EnumCollisionStrength {
|
||||
ENTITY_LABEL = 6,
|
||||
}
|
||||
|
||||
const deprecatedSafeBase64 = (base64: string): string =>
|
||||
base64
|
||||
.replace(/\+/g, "-")
|
||||
.replace(/\//g, "_")
|
||||
.replace(/=+$/, "")
|
||||
|
||||
|
||||
// Custom URL-safe replacements (reserving '-' and '_')
|
||||
const safeBase64 = (base64: string): string =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user