mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(callback/js): prevent args from being wrapped in an array when resolving the promise (#744)
This commit is contained in:
@@ -10,7 +10,7 @@ onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
|
||||
delete pendingCallbacks[key];
|
||||
|
||||
resolve(args);
|
||||
resolve(...args);
|
||||
});
|
||||
|
||||
export function triggerClientCallback<T = unknown>(
|
||||
|
||||
Reference in New Issue
Block a user